addr-map.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * linux/arch/arm/mach-mmp/include/mach/addr-map.h
  3. *
  4. * Common address map definitions
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ASM_MACH_ADDR_MAP_H
  11. #define __ASM_MACH_ADDR_MAP_H
  12. #ifndef __ASSEMBLER__
  13. #define IOMEM(x) ((void __iomem *)(x))
  14. #else
  15. #define IOMEM(x) (x)
  16. #endif
  17. /* APB - Application Subsystem Peripheral Bus
  18. *
  19. * NOTE: the DMA controller registers are actually on the AXI fabric #1
  20. * slave port to AHB/APB bridge, due to its close relationship to those
  21. * peripherals on APB, let's count it into the ABP mapping area.
  22. */
  23. #define APB_PHYS_BASE 0xd4000000
  24. #define APB_VIRT_BASE IOMEM(0xfe000000)
  25. #define APB_PHYS_SIZE 0x00200000
  26. #define AXI_PHYS_BASE 0xd4200000
  27. #define AXI_VIRT_BASE IOMEM(0xfe200000)
  28. #define AXI_PHYS_SIZE 0x00200000
  29. /* Static Memory Controller - Chip Select 0 and 1 */
  30. #define SMC_CS0_PHYS_BASE 0x80000000
  31. #define SMC_CS0_PHYS_SIZE 0x10000000
  32. #define SMC_CS1_PHYS_BASE 0x90000000
  33. #define SMC_CS1_PHYS_SIZE 0x10000000
  34. #endif /* __ASM_MACH_ADDR_MAP_H */