ep93xx-regs.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_ARCH_EP93XX_REGS_H
  3. #define __ASM_ARCH_EP93XX_REGS_H
  4. /*
  5. * EP93xx linux memory map:
  6. *
  7. * virt phys size
  8. * fe800000 5M per-platform mappings
  9. * fed00000 80800000 2M APB
  10. * fef00000 80000000 1M AHB
  11. */
  12. #define EP93XX_AHB_PHYS_BASE 0x80000000
  13. #define EP93XX_AHB_VIRT_BASE 0xfef00000
  14. #define EP93XX_AHB_SIZE 0x00100000
  15. #define EP93XX_AHB_PHYS(x) (EP93XX_AHB_PHYS_BASE + (x))
  16. #define EP93XX_AHB_IOMEM(x) IOMEM(EP93XX_AHB_VIRT_BASE + (x))
  17. #define EP93XX_APB_PHYS_BASE 0x80800000
  18. #define EP93XX_APB_VIRT_BASE 0xfed00000
  19. #define EP93XX_APB_SIZE 0x00200000
  20. #define EP93XX_APB_PHYS(x) (EP93XX_APB_PHYS_BASE + (x))
  21. #define EP93XX_APB_IOMEM(x) IOMEM(EP93XX_APB_VIRT_BASE + (x))
  22. /* APB UARTs */
  23. #define EP93XX_UART1_PHYS_BASE EP93XX_APB_PHYS(0x000c0000)
  24. #define EP93XX_UART1_BASE EP93XX_APB_IOMEM(0x000c0000)
  25. #define EP93XX_UART2_PHYS_BASE EP93XX_APB_PHYS(0x000d0000)
  26. #define EP93XX_UART2_BASE EP93XX_APB_IOMEM(0x000d0000)
  27. #define EP93XX_UART3_PHYS_BASE EP93XX_APB_PHYS(0x000e0000)
  28. #define EP93XX_UART3_BASE EP93XX_APB_IOMEM(0x000e0000)
  29. #endif