xref: /openbmc/linux/arch/arm/mach-davinci/hardware.h (revision 12cecbf9)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Hardware definitions common to all DaVinci family processors
4  *
5  * Author: Kevin Hilman, Deep Root Systems, LLC
6  *
7  * 2007 (c) Deep Root Systems, LLC.
8  */
9 #ifndef __ASM_ARCH_HARDWARE_H
10 #define __ASM_ARCH_HARDWARE_H
11 
12 /*
13  * Before you add anything to ths file:
14  *
15  * This header is for defines common to ALL DaVinci family chips.
16  * Anything that is chip specific should go in <chipname>.h,
17  * and the chip/board init code should then explicitly include
18  * <chipname>.h
19  */
20 /*
21  * I/O mapping
22  */
23 #define IO_PHYS				UL(0x01c00000)
24 #define IO_OFFSET			0xfd000000 /* Virtual IO = 0xfec00000 */
25 #define IO_SIZE				0x00400000
26 #define IO_VIRT				(IO_PHYS + IO_OFFSET)
27 #define io_v2p(va)			((va) - IO_OFFSET)
28 #define __IO_ADDRESS(x)			((x) + IO_OFFSET)
29 #define IO_ADDRESS(pa)			IOMEM(__IO_ADDRESS(pa))
30 
31 #endif /* __ASM_ARCH_HARDWARE_H */
32