| 
									
										
										
										
											2007-12-11 13:50:17 -08:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2008-08-05 16:14:15 +01:00
										 |  |  |  * arch/arm/plat-omap/include/mach/nand.h | 
					
						
							| 
									
										
										
										
											2007-12-11 13:50:17 -08:00
										 |  |  |  * | 
					
						
							|  |  |  |  * Copyright (C) 2006 Micron Technology Inc. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU General Public License version 2 as | 
					
						
							|  |  |  |  * published by the Free Software Foundation. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <linux/mtd/partitions.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct omap_nand_platform_data { | 
					
						
							|  |  |  | 	unsigned int		options; | 
					
						
							|  |  |  | 	int			cs; | 
					
						
							|  |  |  | 	int			gpio_irq; | 
					
						
							|  |  |  | 	struct mtd_partition	*parts; | 
					
						
							| 
									
										
										
										
											2010-02-15 10:03:33 -08:00
										 |  |  | 	struct gpmc_timings	*gpmc_t; | 
					
						
							| 
									
										
										
										
											2007-12-11 13:50:17 -08:00
										 |  |  | 	int			nr_parts; | 
					
						
							| 
									
										
										
										
											2010-02-15 10:03:33 -08:00
										 |  |  | 	int			(*nand_setup)(void); | 
					
						
							| 
									
										
										
										
											2007-12-11 13:50:17 -08:00
										 |  |  | 	int			(*dev_ready)(struct omap_nand_platform_data *); | 
					
						
							|  |  |  | 	int			dma_channel; | 
					
						
							| 
									
										
										
										
											2010-02-15 10:03:33 -08:00
										 |  |  | 	unsigned long		phys_base; | 
					
						
							|  |  |  | 	int			devsize; | 
					
						
							| 
									
										
										
										
											2007-12-11 13:50:17 -08:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2010-02-15 10:03:33 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-07-09 09:14:45 +00:00
										 |  |  | /* minimum size for IO mapping */ | 
					
						
							|  |  |  | #define	NAND_IO_SIZE	4
 | 
					
						
							| 
									
										
										
										
											2010-02-15 10:03:33 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-20 06:33:26 +00:00
										 |  |  | #if defined(CONFIG_MTD_NAND_OMAP2) || defined(CONFIG_MTD_NAND_OMAP2_MODULE)
 | 
					
						
							| 
									
										
										
										
											2010-02-15 10:03:33 -08:00
										 |  |  | extern int gpmc_nand_init(struct omap_nand_platform_data *d); | 
					
						
							| 
									
										
										
										
											2010-04-20 06:33:26 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | static inline int gpmc_nand_init(struct omap_nand_platform_data *d) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 |