blob: 16bb42291d39d5154f99f1adc91590f18c2785f8 [file] [log] [blame]
Kevin Hilman7c6337e2007-04-30 19:37:19 +01001/*
Kevin Hilmanf5c122d2009-04-14 07:04:16 -05002 * Hardware definitions common to all DaVinci family processors
Kevin Hilman7c6337e2007-04-30 19:37:19 +01003 *
Kevin Hilmanf5c122d2009-04-14 07:04:16 -05004 * Author: Kevin Hilman, Deep Root Systems, LLC
Kevin Hilman7c6337e2007-04-30 19:37:19 +01005 *
Kevin Hilmanf5c122d2009-04-14 07:04:16 -05006 * 2007 (c) Deep Root Systems, LLC. This file is licensed under
Kevin Hilman7c6337e2007-04-30 19:37:19 +01007 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
9 * or implied.
10 */
11#ifndef __ASM_ARCH_HARDWARE_H
12#define __ASM_ARCH_HARDWARE_H
13
Vladimir Barinov3d9edf02007-07-10 13:03:43 +010014/*
Kevin Hilmanf5c122d2009-04-14 07:04:16 -050015 * Before you add anything to ths file:
16 *
17 * This header is for defines common to ALL DaVinci family chips.
18 * Anything that is chip specific should go in <chipname>.h,
19 * and the chip/board init code should then explicitly include
20 * <chipname>.h
Vladimir Barinov3d9edf02007-07-10 13:03:43 +010021 */
Hemant Pedanekar9eb71152009-06-24 10:15:47 +053022/*
23 * I/O mapping
24 */
Uwe Kleine-König477099f2012-03-22 10:29:23 +010025#define IO_PHYS UL(0x01c00000)
Hemant Pedanekar9eb71152009-06-24 10:15:47 +053026#define IO_OFFSET 0xfd000000 /* Virtual IO = 0xfec00000 */
27#define IO_SIZE 0x00400000
28#define IO_VIRT (IO_PHYS + IO_OFFSET)
29#define io_v2p(va) ((va) - IO_OFFSET)
30#define __IO_ADDRESS(x) ((x) + IO_OFFSET)
31#define IO_ADDRESS(pa) IOMEM(__IO_ADDRESS(pa))
32
Kevin Hilman7c6337e2007-04-30 19:37:19 +010033#endif /* __ASM_ARCH_HARDWARE_H */