mtd: nand: atmel: Fix EDO mode check
EDO mode should be used when tRC is less than 30ns, but timings are
expressed in picoseconds in the nand_sdr_timings struct.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: f9ce2eddf1
("mtd: nand: atmel: Add ->setup_data_interface() hooks")
Reported-by: Alexander Dahl <ada@thorsis.com>
Tested-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
This commit is contained in:
parent
6d29231000
commit
ee02f73e04
@ -1201,7 +1201,7 @@ static int atmel_smc_nand_prepare_smcconf(struct atmel_nand *nand,
|
||||
* tRC < 30ns implies EDO mode. This controller does not support this
|
||||
* mode.
|
||||
*/
|
||||
if (conf->timings.sdr.tRC_min < 30)
|
||||
if (conf->timings.sdr.tRC_min < 30000)
|
||||
return -ENOTSUPP;
|
||||
|
||||
atmel_smc_cs_conf_init(smcconf);
|
||||
|
Loading…
Reference in New Issue
Block a user