blob: 83e5926f3c46966f29b01c227d343a64dc12a7da [file] [log] [blame]
Cyril Chemparathy4d1e7842010-05-18 12:51:19 -04001/*
2 * Texas Instruments TNETV107X SoC Specific Defines
3 *
4 * Copyright (C) 2010 Texas Instruments
5 *
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.
9 *
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.
14 */
15#ifndef __ASM_ARCH_DAVINCI_TNETV107X_H
16#define __ASM_ARCH_DAVINCI_TNETV107X_H
17
18#include <asm/sizes.h>
19
20#define TNETV107X_DDR_BASE 0x80000000
21
22/*
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.
27 */
28#define TNETV107X_IO_BASE 0x08000000
29#define TNETV107X_IO_VIRT (IO_VIRT + SZ_1M)
30
31#define TNETV107X_N_GPIO 65
32
33#ifndef __ASSEMBLY__
34
35#include <linux/serial_8250.h>
Cyril Chemparathyd45b1ed2010-09-20 12:26:41 -040036#include <linux/input/matrix_keypad.h>
Cyril Chemparathy24981752011-01-18 19:21:39 +000037#include <linux/mfd/ti_ssp.h>
Cyril Chemparathyd45b1ed2010-09-20 12:26:41 -040038
Cyril Chemparathy4d1e7842010-05-18 12:51:19 -040039#include <mach/mmc.h>
40#include <mach/nand.h>
41#include <mach/serial.h>
42
43struct tnetv107x_device_info {
44 struct davinci_uart_config *serial_config;
45 struct davinci_mmc_config *mmc_config[2]; /* 2 controllers */
46 struct davinci_nand_pdata *nand_config[4]; /* 4 chipsels */
Cyril Chemparathyd45b1ed2010-09-20 12:26:41 -040047 struct matrix_keypad_platform_data *keypad_config;
Cyril Chemparathy24981752011-01-18 19:21:39 +000048 struct ti_ssp_data *ssp_config;
Cyril Chemparathy4d1e7842010-05-18 12:51:19 -040049};
50
51extern struct platform_device tnetv107x_wdt_device;
52extern struct platform_device tnetv107x_serial_device;
53
54extern void __init tnetv107x_init(void);
55extern void __init tnetv107x_devices_init(struct tnetv107x_device_info *);
56extern void __init tnetv107x_irq_init(void);
Sekhar Noric6121dd2011-12-05 11:29:46 +010057void tnetv107x_restart(char mode, const char *cmd);
Cyril Chemparathy4d1e7842010-05-18 12:51:19 -040058
59#endif
60
61#endif /* __ASM_ARCH_DAVINCI_TNETV107X_H */