diff options
| author | Vipin Kumar <vipin.kumar@st.com> | 2012-03-14 02:17:18 -0400 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-03-26 20:00:24 -0400 |
| commit | 4774fb0a48aacfec206e6d54ecf58706f6a5320a (patch) | |
| tree | 073282f1f2514cb524019042fc081c62f5daec8c /include/linux/mtd | |
| parent | 604e75444fa82cfdcba339e3bd4da1dfd6947539 (diff) | |
mtd: nand/fsmc: Add DMA support
The fsmc_nand driver uses cpu to read/write onto the device. This is inefficient
because of two reasons
- the cpu gets locked on AHB bus while reading from NAND
- the cpu is unnecessarily used when dma can do the job
This patch adds the support for accessing the device through DMA
Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Reviewed-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
| -rw-r--r-- | include/linux/mtd/fsmc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mtd/fsmc.h b/include/linux/mtd/fsmc.h index 1edd2b3ac38..18f9127a663 100644 --- a/include/linux/mtd/fsmc.h +++ b/include/linux/mtd/fsmc.h | |||
| @@ -172,6 +172,10 @@ struct fsmc_nand_platform_data { | |||
| 172 | enum access_mode mode; | 172 | enum access_mode mode; |
| 173 | 173 | ||
| 174 | void (*select_bank)(uint32_t bank, uint32_t busw); | 174 | void (*select_bank)(uint32_t bank, uint32_t busw); |
| 175 | |||
| 176 | /* priv structures for dma accesses */ | ||
| 177 | void *read_dma_priv; | ||
| 178 | void *write_dma_priv; | ||
| 175 | }; | 179 | }; |
| 176 | 180 | ||
| 177 | extern int __init fsmc_nor_init(struct platform_device *pdev, | 181 | extern int __init fsmc_nor_init(struct platform_device *pdev, |
