xref: /OK3568_Linux_fs/kernel/arch/arm/mach-davinci/include/mach/hardware.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Hardware definitions common to all DaVinci family processors
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * Author: Kevin Hilman, Deep Root Systems, LLC
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * 2007 (c) Deep Root Systems, LLC. This file is licensed under
7*4882a593Smuzhiyun  * the terms of the GNU General Public License version 2. This program
8*4882a593Smuzhiyun  * is licensed "as is" without any warranty of any kind, whether express
9*4882a593Smuzhiyun  * or implied.
10*4882a593Smuzhiyun  */
11*4882a593Smuzhiyun #ifndef __ASM_ARCH_HARDWARE_H
12*4882a593Smuzhiyun #define __ASM_ARCH_HARDWARE_H
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun /*
15*4882a593Smuzhiyun  * Before you add anything to ths file:
16*4882a593Smuzhiyun  *
17*4882a593Smuzhiyun  * This header is for defines common to ALL DaVinci family chips.
18*4882a593Smuzhiyun  * Anything that is chip specific should go in <chipname>.h,
19*4882a593Smuzhiyun  * and the chip/board init code should then explicitly include
20*4882a593Smuzhiyun  * <chipname>.h
21*4882a593Smuzhiyun  */
22*4882a593Smuzhiyun /*
23*4882a593Smuzhiyun  * I/O mapping
24*4882a593Smuzhiyun  */
25*4882a593Smuzhiyun #define IO_PHYS				UL(0x01c00000)
26*4882a593Smuzhiyun #define IO_OFFSET			0xfd000000 /* Virtual IO = 0xfec00000 */
27*4882a593Smuzhiyun #define IO_SIZE				0x00400000
28*4882a593Smuzhiyun #define IO_VIRT				(IO_PHYS + IO_OFFSET)
29*4882a593Smuzhiyun #define io_v2p(va)			((va) - IO_OFFSET)
30*4882a593Smuzhiyun #define __IO_ADDRESS(x)			((x) + IO_OFFSET)
31*4882a593Smuzhiyun #define IO_ADDRESS(pa)			IOMEM(__IO_ADDRESS(pa))
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #endif /* __ASM_ARCH_HARDWARE_H */
34