diff options
| author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-09-15 04:32:48 -0400 |
|---|---|---|
| committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-09-23 03:35:16 -0400 |
| commit | b88730ada99bfe243862add360720a3550b0edbf (patch) | |
| tree | 1e5ce3a923eb949ee33f133c873008c69698ee6b /include/linux/mtd | |
| parent | b1dd3ca203fccd111926c3f6ac59bf903ec62b05 (diff) | |
mtd: nand: Add function to convert ONFI mode to data_interface
onfi_init_data_interface() initializes a data interface with
values from a given ONFI mode.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'include/linux/mtd')
| -rw-r--r-- | include/linux/mtd/nand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index a625e960c0c3..1f34c04fe16c 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
| @@ -1112,6 +1112,11 @@ static inline int onfi_get_sync_timing_mode(struct nand_chip *chip) | |||
| 1112 | return le16_to_cpu(chip->onfi_params.src_sync_timing_mode); | 1112 | return le16_to_cpu(chip->onfi_params.src_sync_timing_mode); |
| 1113 | } | 1113 | } |
| 1114 | 1114 | ||
| 1115 | int onfi_init_data_interface(struct nand_chip *chip, | ||
| 1116 | struct nand_data_interface *iface, | ||
| 1117 | enum nand_data_interface_type type, | ||
| 1118 | int timing_mode); | ||
| 1119 | |||
| 1115 | /* | 1120 | /* |
| 1116 | * Check if it is a SLC nand. | 1121 | * Check if it is a SLC nand. |
| 1117 | * The !nand_is_slc() can be used to check the MLC/TLC nand chips. | 1122 | * The !nand_is_slc() can be used to check the MLC/TLC nand chips. |
