u-boot/drivers/mtd
Laurence Withers 6016194371 NAND: davinci: choose correct 1-bit h/w ECC reg
In nand_davinci_readecc(), select the correct NANDF<n>ECC register based
on CONFIG_SYS_NAND_CS rather than hardcoding the choice of NANDF1ECC.
This allows 1-bit hardware ECC to work with chip select other than CS2.

Note this now matches the usage in nand_davinci_enable_hwecc(), which
already had the correct handling, and allows refactoring to a single
function encapsulating the register read.

Without this fix, writing NAND pages to a chip not wired to CS2 would
result in in the ECC calculation always returning FFFFFF for each
512-byte segment, and reading back a correctly written page (one with
ECC intact) would always fail. With this fix, the ECC is written and
verified correctly.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
2011-10-10 15:28:05 -05:00
..
nand NAND: davinci: choose correct 1-bit h/w ECC reg 2011-10-10 15:28:05 -05:00
onenand Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
spi sf: eon: add support for EN25Q32B parts 2011-09-29 16:51:16 -04:00
ubi GCC4.6: Squash warning in vmt.c 2011-10-01 23:34:03 +02:00
at45.c drivers/mtd: Move conditional compilation to Makefile 2008-08-13 01:40:42 +02:00
cfi_flash.c Timer: Allow reset_timer() only for systems with low resolution timers 2011-07-26 14:52:53 +02:00
cfi_mtd.c CFI: fix warning: variable ... set but not used 2011-10-09 23:24:49 +02:00
dataflash.c mtd/dataflash.c: fix a problem with the last partition 2008-12-02 21:53:24 +01:00
ftsmc020.c ftsmc020: fix relocation 2011-05-12 23:43:27 +02:00
jedec_flash.c add AM29F400BB to table of supported legacy flashs 2011-01-11 10:43:31 +01:00
Makefile ftsmc020: move ftsmc020 static mem controller to driver/mtd 2011-04-27 19:38:10 +02:00
mtdconcat.c mtd: Add MTD concat support to concatenate multiple MTD NOR devices 2009-06-12 20:45:47 +02:00
mtdcore.c Followup fixes on the mtdparts spread patchset 2010-10-11 15:11:01 -05:00
mtdpart.c nand: remove dead code and suspend/resume 2010-10-11 15:10:35 -05:00
mw_eeprom.c Update i386 code (sc520_cdp) 2008-09-09 11:48:53 +02:00
spr_smi.c mod change 755 => 644 for multiple files 2010-03-21 22:22:53 +01:00