Path: blob/master/arch/arm/mach-davinci/include/mach/hardware.h
17628 views
/*1* Hardware definitions common to all DaVinci family processors2*3* Author: Kevin Hilman, Deep Root Systems, LLC4*5* 2007 (c) Deep Root Systems, LLC. This file is licensed under6* the terms of the GNU General Public License version 2. This program7* is licensed "as is" without any warranty of any kind, whether express8* or implied.9*/10#ifndef __ASM_ARCH_HARDWARE_H11#define __ASM_ARCH_HARDWARE_H1213/*14* Before you add anything to ths file:15*16* This header is for defines common to ALL DaVinci family chips.17* Anything that is chip specific should go in <chipname>.h,18* and the chip/board init code should then explicitly include19* <chipname>.h20*/21#define DAVINCI_SYSTEM_MODULE_BASE 0x01C400002223/*24* I/O mapping25*/26#define IO_PHYS 0x01c00000UL27#define IO_OFFSET 0xfd000000 /* Virtual IO = 0xfec00000 */28#define IO_SIZE 0x0040000029#define IO_VIRT (IO_PHYS + IO_OFFSET)30#define io_v2p(va) ((va) - IO_OFFSET)31#define __IO_ADDRESS(x) ((x) + IO_OFFSET)32#define IO_ADDRESS(pa) IOMEM(__IO_ADDRESS(pa))3334#ifdef __ASSEMBLER__35#define IOMEM(x) x36#else37#define IOMEM(x) ((void __force __iomem *)(x))38#endif3940#endif /* __ASM_ARCH_HARDWARE_H */414243