addr-map.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. /* APB - Application Subsystem Peripheral Bus
  13. *
  14. * NOTE: the DMA controller registers are actually on the AXI fabric #1
  15. * slave port to AHB/APB bridge, due to its close relationship to those
  16. * peripherals on APB, let's count it into the ABP mapping area.
  17. */
  18. #define APB_PHYS_BASE 0xd4000000
  19. #define APB_VIRT_BASE IOMEM(0xfe000000)
  20. #define APB_PHYS_SIZE 0x00200000
  21. #define AXI_PHYS_BASE 0xd4200000
  22. #define AXI_VIRT_BASE IOMEM(0xfe200000)
  23. #define AXI_PHYS_SIZE 0x00200000
  24. /* Static Memory Controller - Chip Select 0 and 1 */
  25. #define SMC_CS0_PHYS_BASE 0x80000000
  26. #define SMC_CS0_PHYS_SIZE 0x10000000
  27. #define SMC_CS1_PHYS_BASE 0x90000000
  28. #define SMC_CS1_PHYS_SIZE 0x10000000
  29. #define APMU_VIRT_BASE (AXI_VIRT_BASE + 0x82800)
  30. #define APMU_REG(x) (APMU_VIRT_BASE + (x))
  31. #define APBC_VIRT_BASE (APB_VIRT_BASE + 0x015000)
  32. #define APBC_REG(x) (APBC_VIRT_BASE + (x))
  33. #define MPMU_VIRT_BASE (APB_VIRT_BASE + 0x50000)
  34. #define MPMU_REG(x) (MPMU_VIRT_BASE + (x))
  35. #define CIU_VIRT_BASE (AXI_VIRT_BASE + 0x82c00)
  36. #define CIU_REG(x) (CIU_VIRT_BASE + (x))
  37. #endif /* __ASM_MACH_ADDR_MAP_H */