Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ASM_ARCH_EP93XX_REGS_H
0003 #define __ASM_ARCH_EP93XX_REGS_H
0004 
0005 /*
0006  * EP93xx linux memory map:
0007  *
0008  * virt     phys        size
0009  * fe800000         5M      per-platform mappings
0010  * fed00000 80800000    2M      APB
0011  * fef00000 80000000    1M      AHB
0012  */
0013 
0014 #define EP93XX_AHB_PHYS_BASE        0x80000000
0015 #define EP93XX_AHB_VIRT_BASE        0xfef00000
0016 #define EP93XX_AHB_SIZE         0x00100000
0017 
0018 #define EP93XX_AHB_PHYS(x)      (EP93XX_AHB_PHYS_BASE + (x))
0019 #define EP93XX_AHB_IOMEM(x)     IOMEM(EP93XX_AHB_VIRT_BASE + (x))
0020 
0021 #define EP93XX_APB_PHYS_BASE        0x80800000
0022 #define EP93XX_APB_VIRT_BASE        0xfed00000
0023 #define EP93XX_APB_SIZE         0x00200000
0024 
0025 #define EP93XX_APB_PHYS(x)      (EP93XX_APB_PHYS_BASE + (x))
0026 #define EP93XX_APB_IOMEM(x)     IOMEM(EP93XX_APB_VIRT_BASE + (x))
0027 
0028 /* APB UARTs */
0029 #define EP93XX_UART1_PHYS_BASE      EP93XX_APB_PHYS(0x000c0000)
0030 #define EP93XX_UART1_BASE       EP93XX_APB_IOMEM(0x000c0000)
0031 
0032 #define EP93XX_UART2_PHYS_BASE      EP93XX_APB_PHYS(0x000d0000)
0033 #define EP93XX_UART2_BASE       EP93XX_APB_IOMEM(0x000d0000)
0034 
0035 #define EP93XX_UART3_PHYS_BASE      EP93XX_APB_PHYS(0x000e0000)
0036 #define EP93XX_UART3_BASE       EP93XX_APB_IOMEM(0x000e0000)
0037 
0038 #endif