RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / mach-davinci / include / mach / tnetv107x.h
blobc720647331235455a002196b9e70fa7391577439
1 /*
2 * Texas Instruments TNETV107X SoC Specific Defines
4 * Copyright (C) 2010 Texas Instruments
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation version 2.
10 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
11 * kind, whether express or implied; without even the implied warranty
12 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 #ifndef __ASM_ARCH_DAVINCI_TNETV107X_H
16 #define __ASM_ARCH_DAVINCI_TNETV107X_H
18 #include <asm/sizes.h>
20 #define TNETV107X_DDR_BASE 0x80000000
23 * Fixed mapping for early init starts here. If low-level debug is enabled,
24 * this area also gets mapped via io_pg_offset and io_phys by the boot code.
25 * To fit in with the io_pg_offset calculation, the io base address selected
26 * here _must_ be a multiple of 2^20.
28 #define TNETV107X_IO_BASE 0x08000000
29 #define TNETV107X_IO_VIRT (IO_VIRT + SZ_1M)
31 #define TNETV107X_N_GPIO 65
33 #ifndef __ASSEMBLY__
35 #include <linux/serial_8250.h>
36 #include <mach/mmc.h>
37 #include <mach/nand.h>
38 #include <mach/serial.h>
40 struct tnetv107x_device_info {
41 struct davinci_uart_config *serial_config;
42 struct davinci_mmc_config *mmc_config[2]; /* 2 controllers */
43 struct davinci_nand_pdata *nand_config[4]; /* 4 chipsels */
46 extern struct platform_device tnetv107x_wdt_device;
47 extern struct platform_device tnetv107x_serial_device;
49 extern void __init tnetv107x_init(void);
50 extern void __init tnetv107x_devices_init(struct tnetv107x_device_info *);
51 extern void __init tnetv107x_irq_init(void);
53 #endif
55 #endif /* __ASM_ARCH_DAVINCI_TNETV107X_H */