addr-map.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Common address map definitions
  4. */
  5. #ifndef __ASM_MACH_ADDR_MAP_H
  6. #define __ASM_MACH_ADDR_MAP_H
  7. /* APB - Application Subsystem Peripheral Bus
  8. *
  9. * NOTE: the DMA controller registers are actually on the AXI fabric #1
  10. * slave port to AHB/APB bridge, due to its close relationship to those
  11. * peripherals on APB, let's count it into the ABP mapping area.
  12. */
  13. #define APB_PHYS_BASE 0xd4000000
  14. #define APB_VIRT_BASE IOMEM(0xfe000000)
  15. #define APB_PHYS_SIZE 0x00200000
  16. #define AXI_PHYS_BASE 0xd4200000
  17. #define AXI_VIRT_BASE IOMEM(0xfe200000)
  18. #define AXI_PHYS_SIZE 0x00200000
  19. #define PGU_PHYS_BASE 0xe0000000
  20. #define PGU_VIRT_BASE IOMEM(0xfe400000)
  21. #define PGU_PHYS_SIZE 0x00100000
  22. /* Static Memory Controller - Chip Select 0 and 1 */
  23. #define SMC_CS0_PHYS_BASE 0x80000000
  24. #define SMC_CS0_PHYS_SIZE 0x10000000
  25. #define SMC_CS1_PHYS_BASE 0x90000000
  26. #define SMC_CS1_PHYS_SIZE 0x10000000
  27. #define APMU_VIRT_BASE (AXI_VIRT_BASE + 0x82800)
  28. #define APMU_REG(x) (APMU_VIRT_BASE + (x))
  29. #define APBC_VIRT_BASE (APB_VIRT_BASE + 0x015000)
  30. #define APBC_REG(x) (APBC_VIRT_BASE + (x))
  31. #define MPMU_VIRT_BASE (APB_VIRT_BASE + 0x50000)
  32. #define MPMU_REG(x) (MPMU_VIRT_BASE + (x))
  33. #define CIU_VIRT_BASE (AXI_VIRT_BASE + 0x82c00)
  34. #define CIU_REG(x) (CIU_VIRT_BASE + (x))
  35. #define SCU_VIRT_BASE (PGU_VIRT_BASE)
  36. #define SCU_REG(x) (SCU_VIRT_BASE + (x))
  37. #endif /* __ASM_MACH_ADDR_MAP_H */