summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-07-11 09:49:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-08-18 16:16:27 +0200
commitcae9515d05b192637488bae455a1ed68206f64bd (patch)
tree149bc373a86a9038aab259ca145f89084a325aaa /include/linux
parentbb25c7f528d34a086e6443cf7e876428c3a38f9a (diff)
downloadbarebox-cae9515d05b192637488bae455a1ed68206f64bd.tar.gz
barebox-cae9515d05b192637488bae455a1ed68206f64bd.tar.xz
mtd: nand: add ONFI timing mode to nand_timings converter
Ported from Linux commit 974647e: | 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> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-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 5c237f0bd2..66c936ee70 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -791,4 +791,7 @@ struct nand_sdr_timings {
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 */