diff options
author | Sukumar Ghorai <s-ghorai@ti.com> | 2011-01-28 05:12:04 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-17 18:32:52 -0500 |
commit | 1b0b323c70cd5fdca967d89ed3a03dfebd84ada7 (patch) | |
tree | 224d603ee170f3f2b3f45214d9fe2ae4181e9a27 /arch/arm | |
parent | d5ce2b6592c49935462cba7317fa67fe8ee474ec (diff) |
omap3: nand: configurable transfer type per board
nand transfer type (sDMA, Polled, prefetch) can be select from board file,
enabling all transfer type in driver, by default.
this helps in multi-omap build and to select different transfer type for
different board.
Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/plat-omap/include/plat/nand.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/nand.h b/arch/arm/plat-omap/include/plat/nand.h index 6562cd082bb1..78c0bdb98c18 100644 --- a/arch/arm/plat-omap/include/plat/nand.h +++ b/arch/arm/plat-omap/include/plat/nand.h | |||
@@ -10,6 +10,12 @@ | |||
10 | 10 | ||
11 | #include <linux/mtd/partitions.h> | 11 | #include <linux/mtd/partitions.h> |
12 | 12 | ||
13 | enum nand_io { | ||
14 | NAND_OMAP_PREFETCH_POLLED = 0, /* prefetch polled mode, default */ | ||
15 | NAND_OMAP_POLLED, /* polled mode, without prefetch */ | ||
16 | NAND_OMAP_PREFETCH_DMA /* prefetch enabled sDMA mode */ | ||
17 | }; | ||
18 | |||
13 | struct omap_nand_platform_data { | 19 | struct omap_nand_platform_data { |
14 | unsigned int options; | 20 | unsigned int options; |
15 | int cs; | 21 | int cs; |
@@ -20,6 +26,7 @@ struct omap_nand_platform_data { | |||
20 | int (*nand_setup)(void); | 26 | int (*nand_setup)(void); |
21 | int (*dev_ready)(struct omap_nand_platform_data *); | 27 | int (*dev_ready)(struct omap_nand_platform_data *); |
22 | int dma_channel; | 28 | int dma_channel; |
29 | enum nand_io xfer_type; | ||
23 | unsigned long phys_base; | 30 | unsigned long phys_base; |
24 | int devsize; | 31 | int devsize; |
25 | }; | 32 | }; |