diff options
author | Vimal Singh <vimalsingh@ti.com> | 2010-02-15 13:03:33 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-15 13:03:33 -0500 |
commit | 2f70a1e93657bea0baa7d449aa49e44a08582dc8 (patch) | |
tree | 598f99ef54521cb3b82f0793d39753979e0a33ae /arch/arm/plat-omap/include | |
parent | 30e53bccfa15c6c0839c87705a66d478bb10baf5 (diff) |
omap2/3/4: Introducing 'gpmc-nand.c' for GPMC specific NAND init
Introducing 'gpmc-nand.c' for GPMC specific NAND init.
For example: GPMC timing parameters and all.
This patch also migrates gpmc related calls from 'nand/omap2.c'
to 'gpmc-nand.c'.
Signed-off-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r-- | arch/arm/plat-omap/include/plat/nand.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/include/plat/nand.h b/arch/arm/plat-omap/include/plat/nand.h index 631a7bed1eef..6ba88d2630d9 100644 --- a/arch/arm/plat-omap/include/plat/nand.h +++ b/arch/arm/plat-omap/include/plat/nand.h | |||
@@ -15,10 +15,18 @@ struct omap_nand_platform_data { | |||
15 | int cs; | 15 | int cs; |
16 | int gpio_irq; | 16 | int gpio_irq; |
17 | struct mtd_partition *parts; | 17 | struct mtd_partition *parts; |
18 | struct gpmc_timings *gpmc_t; | ||
18 | int nr_parts; | 19 | int nr_parts; |
19 | int (*nand_setup)(void __iomem *); | 20 | int (*nand_setup)(void); |
20 | int (*dev_ready)(struct omap_nand_platform_data *); | 21 | int (*dev_ready)(struct omap_nand_platform_data *); |
21 | int dma_channel; | 22 | int dma_channel; |
23 | unsigned long phys_base; | ||
22 | void __iomem *gpmc_cs_baseaddr; | 24 | void __iomem *gpmc_cs_baseaddr; |
23 | void __iomem *gpmc_baseaddr; | 25 | void __iomem *gpmc_baseaddr; |
26 | int devsize; | ||
24 | }; | 27 | }; |
28 | |||
29 | /* size (4 KiB) for IO mapping */ | ||
30 | #define NAND_IO_SIZE SZ_4K | ||
31 | |||
32 | extern int gpmc_nand_init(struct omap_nand_platform_data *d); | ||