| 
									
										
										
										
											2010-05-18 12:51:19 -04:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Texas Instruments TNETV107X SoC Specific Defines | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Copyright (C) 2010 Texas Instruments | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or | 
					
						
							|  |  |  |  * modify it under the terms of the GNU General Public License as | 
					
						
							|  |  |  |  * published by the Free Software Foundation version 2. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is distributed "as is" WITHOUT ANY WARRANTY of any | 
					
						
							|  |  |  |  * kind, whether express or implied; without even the implied warranty | 
					
						
							|  |  |  |  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |  * GNU General Public License for more details. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | #ifndef __ASM_ARCH_DAVINCI_TNETV107X_H
 | 
					
						
							|  |  |  | #define __ASM_ARCH_DAVINCI_TNETV107X_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <asm/sizes.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define TNETV107X_DDR_BASE	0x80000000
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*
 | 
					
						
							|  |  |  |  * Fixed mapping for early init starts here. If low-level debug is enabled, | 
					
						
							|  |  |  |  * this area also gets mapped via io_pg_offset and io_phys by the boot code. | 
					
						
							|  |  |  |  * To fit in with the io_pg_offset calculation, the io base address selected | 
					
						
							|  |  |  |  * here _must_ be a multiple of 2^20. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | #define TNETV107X_IO_BASE	0x08000000
 | 
					
						
							|  |  |  | #define TNETV107X_IO_VIRT	(IO_VIRT + SZ_1M)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define TNETV107X_N_GPIO	65
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __ASSEMBLY__
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <linux/serial_8250.h>
 | 
					
						
							| 
									
										
										
										
											2010-09-20 12:26:41 -04:00
										 |  |  | #include <linux/input/matrix_keypad.h>
 | 
					
						
							| 
									
										
										
										
											2011-01-18 19:21:39 +00:00
										 |  |  | #include <linux/mfd/ti_ssp.h>
 | 
					
						
							| 
									
										
										
										
											2010-09-20 12:26:41 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-08-24 15:11:34 +02:00
										 |  |  | #include <linux/platform_data/mmc-davinci.h>
 | 
					
						
							|  |  |  | #include <linux/platform_data/mtd-davinci.h>
 | 
					
						
							| 
									
										
										
										
											2010-05-18 12:51:19 -04:00
										 |  |  | #include <mach/serial.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct tnetv107x_device_info { | 
					
						
							|  |  |  | 	struct davinci_uart_config	*serial_config; | 
					
						
							|  |  |  | 	struct davinci_mmc_config	*mmc_config[2];  /* 2 controllers */ | 
					
						
							|  |  |  | 	struct davinci_nand_pdata	*nand_config[4]; /* 4 chipsels */ | 
					
						
							| 
									
										
										
										
											2010-09-20 12:26:41 -04:00
										 |  |  | 	struct matrix_keypad_platform_data *keypad_config; | 
					
						
							| 
									
										
										
										
											2011-01-18 19:21:39 +00:00
										 |  |  | 	struct ti_ssp_data		*ssp_config; | 
					
						
							| 
									
										
										
										
											2010-05-18 12:51:19 -04:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern struct platform_device tnetv107x_wdt_device; | 
					
						
							|  |  |  | extern struct platform_device tnetv107x_serial_device; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern void __init tnetv107x_init(void); | 
					
						
							|  |  |  | extern void __init tnetv107x_devices_init(struct tnetv107x_device_info *); | 
					
						
							|  |  |  | extern void __init tnetv107x_irq_init(void); | 
					
						
							| 
									
										
										
										
											2011-12-05 11:29:46 +01:00
										 |  |  | void tnetv107x_restart(char mode, const char *cmd); | 
					
						
							| 
									
										
										
										
											2010-05-18 12:51:19 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* __ASM_ARCH_DAVINCI_TNETV107X_H */
 |