mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
mtd: rawnand: Add onfi_fill_nvddr_interface_config() helper
Same logic as for the SDR path, let's create a onfi_fill_nvddr_interface_config() helper to fill an interface configuration structure with NV-DDR timings, given a specific ONFI mode. There is one additional thing to do compared to SDR mode: tCAD timing can be fast or slow and this depends on an ONFI parameter page bit. By default the slow value is declared in the timings structure definition, but this helper can shrink it down if necessary. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210505213750.257417-12-miquel.raynal@bootlin.com
This commit is contained in:
@@ -162,6 +162,7 @@ struct onfi_ext_param_page {
|
||||
* @tBERS: Block erase time
|
||||
* @tR: Page read time
|
||||
* @tCCS: Change column setup time
|
||||
* @fast_tCAD: Command/Address/Data slow or fast delay (NV-DDR only)
|
||||
* @sdr_timing_modes: Supported asynchronous/SDR timing modes
|
||||
* @nvddr_timing_modes: Supported source synchronous/NV-DDR timing modes
|
||||
* @vendor_revision: Vendor specific revision number
|
||||
@@ -173,6 +174,7 @@ struct onfi_params {
|
||||
u16 tBERS;
|
||||
u16 tR;
|
||||
u16 tCCS;
|
||||
bool fast_tCAD;
|
||||
u16 sdr_timing_modes;
|
||||
u16 nvddr_timing_modes;
|
||||
u16 vendor_revision;
|
||||
|
||||
Reference in New Issue
Block a user