mtd: nand_omap_gpmc: Fix ecc check for bch8 romcode
The bch8 romcode was only checked and corrected for the
first 512 bytes of a 2048 byte page. Set interation counter
and eccsizes correct for the different bch types.

Tested OMAP_ECC_BCH8_CODE_HW and OMAP_ECC_BCH8_CODE_HW_ROMCODE.

Reported-by: Gabor Janak <g.janak@agilion.de>
Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 4ef5f8c commit 394d4acb8dc3e1c32cd3ff02684628c14157de0a
@Teresa Gámez Teresa Gámez authored on 30 Mar 2015
Sascha Hauer committed on 30 Mar 2015
Showing 1 changed file
View
drivers/mtd/nand/nand_omap_gpmc.c