setup.c 786 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * arch/arm/plat-iop/setup.c
  4. *
  5. * Author: Nicolas Pitre <[email protected]>
  6. * Copyright (C) 2001 MontaVista Software, Inc.
  7. * Copyright (C) 2004 Intel Corporation.
  8. */
  9. #include <linux/mm.h>
  10. #include <linux/init.h>
  11. #include <asm/mach/map.h>
  12. #include "iop3xx.h"
  13. /*
  14. * Standard IO mapping for all IOP3xx based systems. Note that
  15. * the IOP3xx OCCDR must be mapped uncached and unbuffered.
  16. */
  17. static struct map_desc iop3xx_std_desc[] __initdata = {
  18. { /* mem mapped registers */
  19. .virtual = IOP3XX_PERIPHERAL_VIRT_BASE,
  20. .pfn = __phys_to_pfn(IOP3XX_PERIPHERAL_PHYS_BASE),
  21. .length = IOP3XX_PERIPHERAL_SIZE,
  22. .type = MT_UNCACHED,
  23. },
  24. };
  25. void __init iop3xx_map_io(void)
  26. {
  27. iotable_init(iop3xx_std_desc, ARRAY_SIZE(iop3xx_std_desc));
  28. }