summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2020-05-29 13:13:10 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-06-26 08:35:06 +0200
commit173d548b64e14d3d1f22191cc0092c47631a18db (patch)
tree37593a1c25969d97b3ccc79b605ad6e0dd97ba32 /drivers/mtd/nand/raw
parent98d6979aa898239ec2faa10467c338a808e1287e (diff)
downloadlinux-173d548b64e14d3d1f22191cc0092c47631a18db.tar.gz
linux-173d548b64e14d3d1f22191cc0092c47631a18db.tar.bz2
linux-173d548b64e14d3d1f22191cc0092c47631a18db.zip
mtd: rawnand: timings: Avoid redefining tR_max and tCCS_min
These two values are already hardcoded in the default ONFI timing structure, no need to redefine them here. Plus, we want to be able to reference timing mode 0 easily and reliably, without extra computation, so we get rid of the extra assignations. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Link: https://lore.kernel.org/linux-mtd/20200529111322.7184-17-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/mtd/nand/raw')
-rw-r--r--drivers/mtd/nand/raw/nand_timings.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mtd/nand/raw/nand_timings.c b/drivers/mtd/nand/raw/nand_timings.c
index b089f2dc5f23..54c7a1a8b038 100644
--- a/drivers/mtd/nand/raw/nand_timings.c
+++ b/drivers/mtd/nand/raw/nand_timings.c
@@ -369,9 +369,6 @@ int onfi_fill_data_interface(struct nand_chip *chip,
/* microseconds -> picoseconds */
timings->tPROG_max = 1000000ULL * ONFI_DYN_TIMING_MAX;
timings->tBERS_max = 1000000ULL * ONFI_DYN_TIMING_MAX;
-
- timings->tR_max = 200000000;
- timings->tCCS_min = 500000;
}
return 0;