summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorBoris BREZILLON2014-07-11 09:49:42 +0200
committerBrian Norris2014-07-22 04:39:55 +0200
commit974647ea8a13021a91d558df61d598bcabf73439 (patch)
tree048aa97d3cd850a79c047eb63b34d9abf3551cbf /include/linux/mtd
parentmtd: nand: define struct nand_timings (diff)
downloadkernel-qcow2-linux-974647ea8a13021a91d558df61d598bcabf73439.tar.gz
kernel-qcow2-linux-974647ea8a13021a91d558df61d598bcabf73439.tar.xz
kernel-qcow2-linux-974647ea8a13021a91d558df61d598bcabf73439.zip
mtd: nand: add ONFI timing mode to nand_timings converter
Add a converter to retrieve NAND timings from an ONFI NAND timing mode. At the moment, only SDR NAND timings are supported. Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/nand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index cdda207c16e1..3083c53e0270 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -997,4 +997,7 @@ struct nand_sdr_timings {
u32 tWP_min;
u32 tWW_min;
};
+
+/* get timing characteristics from ONFI timing mode. */
+const struct nand_sdr_timings *onfi_async_timing_mode_to_sdr_timings(int mode);
#endif /* __LINUX_MTD_NAND_H */