summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/fsmc.h
diff options
context:
space:
mode:
authorShiraz Hashim2012-03-07 12:30:51 +0100
committerDavid Woodhouse2012-03-27 01:45:55 +0200
commitb2acc92e144336dd29e30dc5d26439355be750b6 (patch)
tree8ecb61eb7f43e30d755b09a5d5ff34299f693612 /include/linux/mtd/fsmc.h
parentmtd: fsmc_nand: ECC1 & ECC4 layout separated for different page sizes (diff)
downloadkernel-qcow2-linux-b2acc92e144336dd29e30dc5d26439355be750b6.tar.gz
kernel-qcow2-linux-b2acc92e144336dd29e30dc5d26439355be750b6.tar.xz
kernel-qcow2-linux-b2acc92e144336dd29e30dc5d26439355be750b6.zip
mtd: fsmc: use ALE and CLE offsets from platform data
ALE and CLE offsets can be different on different devices. Let devices pass these offsets to the fsmc driver through platform data. Signed-off-by: Shiraz Hashim <shiraz.hashim@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/fsmc.h')
-rw-r--r--include/linux/mtd/fsmc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mtd/fsmc.h b/include/linux/mtd/fsmc.h
index 6987995ad3cf..2cd655f06e05 100644
--- a/include/linux/mtd/fsmc.h
+++ b/include/linux/mtd/fsmc.h
@@ -151,6 +151,11 @@ struct fsmc_nand_platform_data {
unsigned int options;
unsigned int width;
unsigned int bank;
+
+ /* CLE, ALE offsets */
+ unsigned long cle_off;
+ unsigned long ale_off;
+
void (*select_bank)(uint32_t bank, uint32_t busw);
};