]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: mxc: Add timing setup for v2 controllers
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 15 Sep 2016 08:32:53 +0000 (10:32 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 23 Sep 2016 07:35:16 +0000 (09:35 +0200)
commit6bf770308b0396036eb709404db7b4d1d13d0ac6
tree91de7344c62135abc3043f0e19b0b30d185957c9
parenta36bea62f88cb6b73bb7dffc302d77f415915b5a
mtd: nand: mxc: Add timing setup for v2 controllers

So far we relied on reset default or the bootloader to configure a
suitable clk rate for the Nand controller. This works but we can
optimize the timing for better performance. This sets the clk rate for
v2 controllers (i.MX25/35) based on the timing mode read from the ONFI
parameter page. This may also enable the symmetric mode (aks EDO mode)
if necessary which reads one word per clock cycle.
Tested on an i.MX25 with a Micron MT29F4G08ABBDAHC attached.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/mxc_nand.c