summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVipin Kumar2012-03-14 07:17:18 +0100
committerDavid Woodhouse2012-03-27 02:00:24 +0200
commit4774fb0a48aacfec206e6d54ecf58706f6a5320a (patch)
tree073282f1f2514cb524019042fc081c62f5daec8c /include
parentmtd: nand/fsmc: Access the NAND device word by word whenever possible (diff)
downloadkernel-qcow2-linux-4774fb0a48aacfec206e6d54ecf58706f6a5320a.tar.gz
kernel-qcow2-linux-4774fb0a48aacfec206e6d54ecf58706f6a5320a.tar.xz
kernel-qcow2-linux-4774fb0a48aacfec206e6d54ecf58706f6a5320a.zip
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')
-rw-r--r--include/linux/mtd/fsmc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mtd/fsmc.h b/include/linux/mtd/fsmc.h
index 1edd2b3ac38e..18f9127a6631 100644
--- a/include/linux/mtd/fsmc.h
+++ b/include/linux/mtd/fsmc.h
@@ -172,6 +172,10 @@ struct fsmc_nand_platform_data {
enum access_mode mode;
void (*select_bank)(uint32_t bank, uint32_t busw);
+
+ /* priv structures for dma accesses */
+ void *read_dma_priv;
+ void *write_dma_priv;
};
extern int __init fsmc_nor_init(struct platform_device *pdev,