]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-eoan-kernel.git] / arch / arm / mach-ep93xx / include / mach / ep93xx-regs.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
e7736d47 2/*
a09e64fb 3 * arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
e7736d47
LB
4 */
5
6#ifndef __ASM_ARCH_EP93XX_REGS_H
7#define __ASM_ARCH_EP93XX_REGS_H
8
9/*
10 * EP93xx linux memory map:
11 *
12 * virt phys size
13 * fe800000 5M per-platform mappings
14 * fed00000 80800000 2M APB
15 * fef00000 80000000 1M AHB
16 */
17
18#define EP93XX_AHB_PHYS_BASE 0x80000000
19#define EP93XX_AHB_VIRT_BASE 0xfef00000
20#define EP93XX_AHB_SIZE 0x00100000
21
591006f8 22#define EP93XX_AHB_PHYS(x) (EP93XX_AHB_PHYS_BASE + (x))
702b59e6
HS
23#define EP93XX_AHB_IOMEM(x) IOMEM(EP93XX_AHB_VIRT_BASE + (x))
24
e7736d47
LB
25#define EP93XX_APB_PHYS_BASE 0x80800000
26#define EP93XX_APB_VIRT_BASE 0xfed00000
27#define EP93XX_APB_SIZE 0x00200000
28
591006f8 29#define EP93XX_APB_PHYS(x) (EP93XX_APB_PHYS_BASE + (x))
702b59e6
HS
30#define EP93XX_APB_IOMEM(x) IOMEM(EP93XX_APB_VIRT_BASE + (x))
31
a05baf33 32/* APB UARTs */
591006f8 33#define EP93XX_UART1_PHYS_BASE EP93XX_APB_PHYS(0x000c0000)
702b59e6 34#define EP93XX_UART1_BASE EP93XX_APB_IOMEM(0x000c0000)
e7736d47 35
591006f8 36#define EP93XX_UART2_PHYS_BASE EP93XX_APB_PHYS(0x000d0000)
702b59e6 37#define EP93XX_UART2_BASE EP93XX_APB_IOMEM(0x000d0000)
e7736d47 38
591006f8 39#define EP93XX_UART3_PHYS_BASE EP93XX_APB_PHYS(0x000e0000)
702b59e6 40#define EP93XX_UART3_BASE EP93XX_APB_IOMEM(0x000e0000)
e7736d47 41
e7736d47 42#endif