1*0fdebc5eSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2ca31807bSArnd Bergmann /* 3ca31807bSArnd Bergmann * Hardware definitions common to all DaVinci family processors 4ca31807bSArnd Bergmann * 5ca31807bSArnd Bergmann * Author: Kevin Hilman, Deep Root Systems, LLC 6ca31807bSArnd Bergmann * 7*0fdebc5eSThomas Gleixner * 2007 (c) Deep Root Systems, LLC. 8ca31807bSArnd Bergmann */ 9ca31807bSArnd Bergmann #ifndef __ASM_ARCH_HARDWARE_H 10ca31807bSArnd Bergmann #define __ASM_ARCH_HARDWARE_H 11ca31807bSArnd Bergmann 12ca31807bSArnd Bergmann /* 13ca31807bSArnd Bergmann * Before you add anything to ths file: 14ca31807bSArnd Bergmann * 15ca31807bSArnd Bergmann * This header is for defines common to ALL DaVinci family chips. 16ca31807bSArnd Bergmann * Anything that is chip specific should go in <chipname>.h, 17ca31807bSArnd Bergmann * and the chip/board init code should then explicitly include 18ca31807bSArnd Bergmann * <chipname>.h 19ca31807bSArnd Bergmann */ 20ca31807bSArnd Bergmann /* 21ca31807bSArnd Bergmann * I/O mapping 22ca31807bSArnd Bergmann */ 23ca31807bSArnd Bergmann #define IO_PHYS UL(0x01c00000) 24ca31807bSArnd Bergmann #define IO_OFFSET 0xfd000000 /* Virtual IO = 0xfec00000 */ 25ca31807bSArnd Bergmann #define IO_SIZE 0x00400000 26ca31807bSArnd Bergmann #define IO_VIRT (IO_PHYS + IO_OFFSET) 27ca31807bSArnd Bergmann #define io_v2p(va) ((va) - IO_OFFSET) 28ca31807bSArnd Bergmann #define __IO_ADDRESS(x) ((x) + IO_OFFSET) 29ca31807bSArnd Bergmann #define IO_ADDRESS(pa) IOMEM(__IO_ADDRESS(pa)) 30ca31807bSArnd Bergmann 31ca31807bSArnd Bergmann #endif /* __ASM_ARCH_HARDWARE_H */ 32