diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-05-05 23:37:37 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-05-26 10:43:46 +0200 |
commit | 9310668fb60a7ee76c4fdfd6388747a6f2beaf75 (patch) | |
tree | 280477dc30cacd61f8ee85001054f26a334e74a3 /include/linux/mtd | |
parent | 1666b815ad1a5b6373e950da5002ac46521a9b28 (diff) | |
download | linux-stable-9310668fb60a7ee76c4fdfd6388747a6f2beaf75.tar.gz linux-stable-9310668fb60a7ee76c4fdfd6388747a6f2beaf75.tar.bz2 linux-stable-9310668fb60a7ee76c4fdfd6388747a6f2beaf75.zip |
mtd: rawnand: Retrieve NV-DDR timing modes from the ONFI parameter page
When parsing the ONFI parameter page, save the available NV-DDR timing
modes in the core's dynamic ONFI structure. Once available to the rest
of the core out of the ONFI driver, these values will then be used to
derive the best timing mode.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210505213750.257417-10-miquel.raynal@bootlin.com
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/onfi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mtd/onfi.h b/include/linux/mtd/onfi.h index 319e1736851d..14e66a49557e 100644 --- a/include/linux/mtd/onfi.h +++ b/include/linux/mtd/onfi.h @@ -25,6 +25,7 @@ /* ONFI features */ #define ONFI_FEATURE_16_BIT_BUS BIT(0) +#define ONFI_FEATURE_NV_DDR BIT(5) #define ONFI_FEATURE_EXT_PARAM_PAGE BIT(7) /* ONFI timing mode, used in both asynchronous and synchronous mode */ @@ -162,6 +163,7 @@ struct onfi_ext_param_page { * @tR: Page read time * @tCCS: Change column setup time * @sdr_timing_modes: Supported asynchronous/SDR timing modes + * @nvddr_timing_modes: Supported source synchronous/NV-DDR timing modes * @vendor_revision: Vendor specific revision number * @vendor: Vendor specific data */ @@ -172,6 +174,7 @@ struct onfi_params { u16 tR; u16 tCCS; u16 sdr_timing_modes; + u16 nvddr_timing_modes; u16 vendor_revision; u8 vendor[88]; }; |