summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-12-13 13:18:52 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-20 08:48:55 +0100
commit6ce1cfac6bdeaf682cb514ecc400fbdbe83f1ed1 (patch)
tree6980fd1e2ff15490d75458ac1a1a1ad0f1b512b0 /arch/arm/mach-omap
parented857a3dc27702c0598790addac9da6fdf58226f (diff)
downloadbarebox-6ce1cfac6bdeaf682cb514ecc400fbdbe83f1ed1.tar.gz
barebox-6ce1cfac6bdeaf682cb514ecc400fbdbe83f1ed1.tar.xz
mtd: nand: omap: unbreak BCH8 support
We now tell the NAND layer that we have subpages with 512 bytes each. This means the calculate_ecc / correct hooks are also called for each subpage which means we cannot iterate over subpages in the calculate_ecc callback. Implement this correctly by removing the loop over subpages in the calculate_ecc callback and by implementing a read_page callback. With this the bch8_hw and bch8_hw_romcode were tested on AM335x, OMAP4 and AM3517. Number of bitflips is correctly reported as tested with the nand_bitflip tool. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> With fix from Teresa: Using BCH rom code mode we start calculating with GPMC_BCH_RESULTx_1. Fix offset for correct error correction. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap')
0 files changed, 0 insertions, 0 deletions