diff options
| author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-10-01 04:24:02 -0400 |
|---|---|---|
| committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-11-07 08:48:37 -0500 |
| commit | 204e7ecd47e26cc12d9e8e8a7e7a2eeb9573f0ba (patch) | |
| tree | 250451c9c3bbef4ee13484003854a8bcb546d7d6 /include/linux | |
| parent | 1c825ad1b8cfe12ccc145dcdba360c52c0272c04 (diff) | |
mtd: nand: Add a few more timings to nand_sdr_timings
Add the tR_max, tBERS_max, tPROG_max and tCCS_min timings to the
nand_sdr_timings struct.
Assign default/safe values for the statically defined timings, and
extract them from the ONFI parameter table if the NAND is ONFI
compliant.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mtd/nand.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index c5d3d5024fc8..6fe83bce83a6 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
| @@ -584,6 +584,10 @@ struct nand_buffers { | |||
| 584 | * | 584 | * |
| 585 | * All these timings are expressed in picoseconds. | 585 | * All these timings are expressed in picoseconds. |
| 586 | * | 586 | * |
| 587 | * @tBERS_max: Block erase time | ||
| 588 | * @tCCS_min: Change column setup time | ||
| 589 | * @tPROG_max: Page program time | ||
| 590 | * @tR_max: Page read time | ||
| 587 | * @tALH_min: ALE hold time | 591 | * @tALH_min: ALE hold time |
| 588 | * @tADL_min: ALE to data loading time | 592 | * @tADL_min: ALE to data loading time |
| 589 | * @tALS_min: ALE setup time | 593 | * @tALS_min: ALE setup time |
| @@ -621,6 +625,10 @@ struct nand_buffers { | |||
| 621 | * @tWW_min: WP# transition to WE# low | 625 | * @tWW_min: WP# transition to WE# low |
| 622 | */ | 626 | */ |
| 623 | struct nand_sdr_timings { | 627 | struct nand_sdr_timings { |
| 628 | u32 tBERS_max; | ||
| 629 | u32 tCCS_min; | ||
| 630 | u32 tPROG_max; | ||
| 631 | u32 tR_max; | ||
| 624 | u32 tALH_min; | 632 | u32 tALH_min; |
| 625 | u32 tADL_min; | 633 | u32 tADL_min; |
| 626 | u32 tALS_min; | 634 | u32 tALS_min; |
