diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-11-22 02:38:18 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-11-29 00:28:58 +0900 |
commit | b893e83330662393ff40d4dc8cb2733599beb26a (patch) | |
tree | 923b8df7c131dfc81159d3a0b11c0520e9e94e81 /include/linux/mtd | |
parent | 46deff57da190fee1a902ecfbf951cd4cfe8494e (diff) | |
download | u-boot-b893e83330662393ff40d4dc8cb2733599beb26a.zip u-boot-b893e83330662393ff40d4dc8cb2733599beb26a.tar.gz u-boot-b893e83330662393ff40d4dc8cb2733599beb26a.tar.bz2 |
mtd: nand: Expose data interface for ONFI mode 0
The nand layer will need ONFI mode 0 to use it as timing mode
before and right after reset.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
[Linux commit: 6e1f9708dbf3c50a8da93c1952a01a7a2acb5e66]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/nand.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index a633fd0..0b9fe3f 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -1183,6 +1183,8 @@ uint8_t nand_read_byte(struct mtd_info *mtd); /* get timing characteristics from ONFI timing mode. */ const struct nand_sdr_timings *onfi_async_timing_mode_to_sdr_timings(int mode); +/* get data interface from ONFI timing mode 0, used after reset. */ +const struct nand_data_interface *nand_get_default_data_interface(void); int nand_check_erased_ecc_chunk(void *data, int datalen, void *ecc, int ecclen, |