u-boot-brain/cpu/arm926ejs/davinci
Hugo Villeneuve 9b05aa788b ARM DaVinci: Fix broken HW ECC for large page NAND.
Based on original patch by Bernard Blackham <bernard@largestprime.net>

U-boot's HW ECC support for large page NAND on Davinci is completely
broken.  Some kernels, such as the 2.6.10 one supported by
MontaVista for DaVinci, rely upon this broken behaviour as they
share the same code for ECCs. In the existing scheme, error
detection *might* work on large page, but error correction
definitely does not.  Small page ECC correction works, but the
format is not compatible with the mainline git kernel.

This patch adds ECC code that matches what is currently in the
Davinci git repository (since NAND support was added in 2.6.24).
This makes the ECC and OOB layout written by u-boot compatible with
Linux for both small page and large page devices and fixes ECC
correction for large page devices.

The old behaviour can be restored by defining the macro
CFG_DAVINCI_BROKEN_ECC, which is undefined by default.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
Acked-by: Sergey Kubushyn <ksi@koi8.net>
Signed-off-by: Scott Wood <scottwood@freescale.com>
2008-09-10 11:40:30 -05:00
..
dp83848.c ARM DaVinci: Changing function names for EMAC driver 2008-08-31 00:39:46 +02:00
ether.c ARM DaVinci: Changing function names for EMAC driver 2008-08-31 00:39:46 +02:00
i2c.c [ARM] TI DaVinci support, hopefully final 2007-08-10 20:26:18 +02:00
lowlevel_init.S Big white-space cleanup. 2008-05-21 00:14:08 +02:00
lxt972.c ARM DaVinci: Changing function names for EMAC driver 2008-08-31 00:39:46 +02:00
Makefile [ARM] TI DaVinci support, hopefully final 2007-08-10 20:26:18 +02:00
nand.c ARM DaVinci: Fix broken HW ECC for large page NAND. 2008-09-10 11:40:30 -05:00
reset.S [ARM] TI DaVinci support, hopefully final 2007-08-10 20:26:18 +02:00
timer.c ARM: Davinci: Fix DM644x timer overflow handling and cleanup 2008-04-22 23:12:01 +02:00