Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arm / mach-davinci / hardware.h
blob7848b6a240b48e620faae6555674376825c237ac
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Hardware definitions common to all DaVinci family processors
5 * Author: Kevin Hilman, Deep Root Systems, LLC
7 * 2007 (c) Deep Root Systems, LLC.
8 */
9 #ifndef __ASM_ARCH_HARDWARE_H
10 #define __ASM_ARCH_HARDWARE_H
13 * Before you add anything to ths file:
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
21 * I/O mapping
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))
31 #endif /* __ASM_ARCH_HARDWARE_H */