Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/plat-omap/include/mach/nand.h |
| 3 | * |
| 4 | * Copyright (C) 2006 Micron Technology Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | #include <linux/mtd/partitions.h> |
| 12 | |
| 13 | struct omap_nand_platform_data { |
| 14 | unsigned int options; |
| 15 | int cs; |
| 16 | int gpio_irq; |
| 17 | struct mtd_partition *parts; |
Vimal Singh | 2f70a1e | 2010-02-15 10:03:33 -0800 | [diff] [blame] | 18 | struct gpmc_timings *gpmc_t; |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 19 | int nr_parts; |
Vimal Singh | 2f70a1e | 2010-02-15 10:03:33 -0800 | [diff] [blame] | 20 | int (*nand_setup)(void); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 21 | int (*dev_ready)(struct omap_nand_platform_data *); |
| 22 | int dma_channel; |
Vimal Singh | 2f70a1e | 2010-02-15 10:03:33 -0800 | [diff] [blame] | 23 | unsigned long phys_base; |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 24 | void __iomem *gpmc_cs_baseaddr; |
| 25 | void __iomem *gpmc_baseaddr; |
Vimal Singh | 2f70a1e | 2010-02-15 10:03:33 -0800 | [diff] [blame] | 26 | int devsize; |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 27 | }; |
Vimal Singh | 2f70a1e | 2010-02-15 10:03:33 -0800 | [diff] [blame] | 28 | |
| 29 | /* size (4 KiB) for IO mapping */ |
| 30 | #define NAND_IO_SIZE SZ_4K |
| 31 | |
stanley.miao | 562468b | 2010-04-20 06:33:26 +0000 | [diff] [blame^] | 32 | #if defined(CONFIG_MTD_NAND_OMAP2) || defined(CONFIG_MTD_NAND_OMAP2_MODULE) |
Vimal Singh | 2f70a1e | 2010-02-15 10:03:33 -0800 | [diff] [blame] | 33 | extern int gpmc_nand_init(struct omap_nand_platform_data *d); |
stanley.miao | 562468b | 2010-04-20 06:33:26 +0000 | [diff] [blame^] | 34 | #else |
| 35 | static inline int gpmc_nand_init(struct omap_nand_platform_data *d) |
| 36 | { |
| 37 | return 0; |
| 38 | } |
| 39 | #endif |