SPL: ONENAND: Fix onenand_spl_load_image implementation.
authorEnric Balletbo i Serra <eballetbo@iseebcn.com>
Thu, 7 Feb 2013 23:14:47 +0000 (23:14 +0000)
committerTom Rini <trini@ti.com>
Fri, 8 Mar 2013 21:41:14 +0000 (16:41 -0500)
commitf99613782a41dbf1b91c19684fe9556ed02ec6d1
tree067f0e73fa21536c6ec2f10d1eb312352cf74e0d
parent66c7f399239e6c0ff5db1ea87c3c2a9a8ae613a1
SPL: ONENAND: Fix onenand_spl_load_image implementation.

Tested with an IGEPv2 board seems that current onenand_spl_load_image implementation
doesn't work. This patch fixes this function changing the read loop and reading the
onenand blocks from page to page.

Tested with various IGEP based boards with a OneNAND from Numonyx.

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
drivers/mtd/onenand/onenand_spl.c