1217309Snwhitehorn/* SPDX-License-Identifier: GPL-2.0-only */
2217309Snwhitehorn/*
3217309Snwhitehorn * Hardware definitions common to all DaVinci family processors
4217309Snwhitehorn *
5217309Snwhitehorn * Author: Kevin Hilman, Deep Root Systems, LLC
6217309Snwhitehorn *
7217309Snwhitehorn * 2007 (c) Deep Root Systems, LLC.
8217309Snwhitehorn */
9217309Snwhitehorn#ifndef __ASM_ARCH_HARDWARE_H
10217309Snwhitehorn#define __ASM_ARCH_HARDWARE_H
11217309Snwhitehorn
12217309Snwhitehorn/*
13217309Snwhitehorn * Before you add anything to ths file:
14217309Snwhitehorn *
15217309Snwhitehorn * This header is for defines common to ALL DaVinci family chips.
16217309Snwhitehorn * Anything that is chip specific should go in <chipname>.h,
17217309Snwhitehorn * and the chip/board init code should then explicitly include
18217309Snwhitehorn * <chipname>.h
19217309Snwhitehorn */
20217309Snwhitehorn/*
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