Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Hardware definitions common to all DaVinci family processors
0004  *
0005  * Author: Kevin Hilman, Deep Root Systems, LLC
0006  *
0007  * 2007 (c) Deep Root Systems, LLC.
0008  */
0009 #ifndef __ASM_ARCH_HARDWARE_H
0010 #define __ASM_ARCH_HARDWARE_H
0011 
0012 /*
0013  * Before you add anything to ths file:
0014  *
0015  * This header is for defines common to ALL DaVinci family chips.
0016  * Anything that is chip specific should go in <chipname>.h,
0017  * and the chip/board init code should then explicitly include
0018  * <chipname>.h
0019  */
0020 /*
0021  * I/O mapping
0022  */
0023 #define IO_PHYS             UL(0x01c00000)
0024 #define IO_OFFSET           0xfd000000 /* Virtual IO = 0xfec00000 */
0025 #define IO_SIZE             0x00400000
0026 #define IO_VIRT             (IO_PHYS + IO_OFFSET)
0027 #define io_v2p(va)          ((va) - IO_OFFSET)
0028 #define __IO_ADDRESS(x)         ((x) + IO_OFFSET)
0029 #define IO_ADDRESS(pa)          IOMEM(__IO_ADDRESS(pa))
0030 
0031 #endif /* __ASM_ARCH_HARDWARE_H */