Path: blob/master/arch/arm/mach-davinci/include/mach/tnetv107x.h
17745 views
/*1* Texas Instruments TNETV107X SoC Specific Defines2*3* Copyright (C) 2010 Texas Instruments4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License as7* published by the Free Software Foundation version 2.8*9* This program is distributed "as is" WITHOUT ANY WARRANTY of any10* kind, whether express or implied; without even the implied warranty11* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*/14#ifndef __ASM_ARCH_DAVINCI_TNETV107X_H15#define __ASM_ARCH_DAVINCI_TNETV107X_H1617#include <asm/sizes.h>1819#define TNETV107X_DDR_BASE 0x800000002021/*22* Fixed mapping for early init starts here. If low-level debug is enabled,23* this area also gets mapped via io_pg_offset and io_phys by the boot code.24* To fit in with the io_pg_offset calculation, the io base address selected25* here _must_ be a multiple of 2^20.26*/27#define TNETV107X_IO_BASE 0x0800000028#define TNETV107X_IO_VIRT (IO_VIRT + SZ_1M)2930#define TNETV107X_N_GPIO 653132#ifndef __ASSEMBLY__3334#include <linux/serial_8250.h>35#include <linux/input/matrix_keypad.h>36#include <linux/mfd/ti_ssp.h>3738#include <mach/mmc.h>39#include <mach/nand.h>40#include <mach/serial.h>4142struct tnetv107x_device_info {43struct davinci_uart_config *serial_config;44struct davinci_mmc_config *mmc_config[2]; /* 2 controllers */45struct davinci_nand_pdata *nand_config[4]; /* 4 chipsels */46struct matrix_keypad_platform_data *keypad_config;47struct ti_ssp_data *ssp_config;48};4950extern struct platform_device tnetv107x_wdt_device;51extern struct platform_device tnetv107x_serial_device;5253extern void __init tnetv107x_init(void);54extern void __init tnetv107x_devices_init(struct tnetv107x_device_info *);55extern void __init tnetv107x_irq_init(void);5657#endif5859#endif /* __ASM_ARCH_DAVINCI_TNETV107X_H */606162