u-boot/cpu/arm926ejs
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
..
at91 Moved initialization of Ethernet controllers on Atmel AT91 to board_eth_init() 2008-09-02 21:18:16 -07:00
davinci ARM DaVinci: Fix broken HW ECC for large page NAND. 2008-09-10 11:40:30 -05:00
omap Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
versatile Correct ARM Versatile Timer Initialization 2008-08-25 13:00:03 +02:00
config.mk Update ARM Integrator boards: 2005-10-04 23:10:28 +02:00
cpu.c ARM: Fix for broken compilation when defining CONFIG_CMD_ELF 2008-07-13 15:05:11 +02:00
cpuinfo.c Remove duplicate defines for ARRAY_SIZE 2008-02-14 00:43:02 +01:00
interrupts.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
Makefile Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
start.S Big white-space cleanup. 2008-05-21 00:14:08 +02:00