mtd: rawnand: sunxi: Handle the tREA > tRC / 2 case
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 20 Dec 2018 14:10:47 +0000 (15:10 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 5 Feb 2019 14:39:39 +0000 (15:39 +0100)
commit511d05e0dadd91d398ed14f043fbcc93d728b98c
treeb0a7629ced4ccf2d0e409b3a47edcd331c74f0d4
parentf4cb4d7b46f6409382fd981eec9556e1f3c1dc5d
mtd: rawnand: sunxi: Handle the tREA > tRC / 2 case

In non-EDO, tREA should be less than tRP to guarantee that the
controller does not sample the IO lines too early. Unfortunately, the
sunxi NAND controller does not allow us to have different values for
tRP and tREH (tRP = tREH = tRW / 2).

We have 2 options to overcome this limitation:

1/ Extend tRC to fulfil the tREA <= tRC / 2 constraint
2/ Use EDO mode (only works if timings->tRLOH > 0)

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/sunxi_nand.c