u-boot/drivers/mtd/nand
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
..
atmel_nand.c atmel_nand: don't require CONFIG_SYS_NAND_ENABLE_PIN 2011-04-01 14:49:08 -05:00
atmel_nand_ecc.h at91: add hwecc method for nand 2010-03-23 14:29:09 -05:00
bfin_nand.c Blackfin: bfin_nand: convert to portmux framework 2010-07-13 17:50:49 -04:00
davinci_nand.c NAND: davinci: choose correct 1-bit h/w ECC reg 2011-10-10 15:28:05 -05:00
diskonchip.c Remove legacy NAND and disk on chip code. 2009-07-16 19:07:47 -05:00
fsl_elbc_nand.c mtd: eLBC NAND: remove elbc_fcm_ctrl->oob_poi 2011-10-03 18:35:12 -05:00
fsl_ifc_nand.c nand: Freescale Integrated Flash Controller NAND support 2011-09-29 19:01:04 -05:00
fsl_upm.c PPC: Fix fsl_upm.c by renaming nand handling functions 2011-10-03 18:41:02 -05:00
kb9202_nand.c KB9202: Add NAND support 2009-08-26 15:37:01 -05:00
kirkwood_nand.c nand: increase chip_delay in mv kirkwood nand driver 2011-10-03 18:35:11 -05:00
kmeter1_nand.c 83xx, kmeter1: added NAND support 2009-08-26 15:37:02 -05:00
Makefile Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2011-10-04 22:08:13 +02:00
mpc5121_nfc.c mpc512x. Micron nand flash needs a reset before a read command is issued. 2009-09-22 22:59:42 +02:00
mxc_nand.c mxc_nand: fix a problem writing more than 32MB 2011-10-03 18:35:12 -05:00
nand.c nand: fix bug with multiple NAND devices if CONFIG_MTD_DEVICE is defined. 2011-01-12 17:13:10 -06:00
nand_base.c NAND: Really ignore bad blocks when scrubbing 2011-10-03 18:35:12 -05:00
nand_bbt.c GCC4.6: Squash warning in nand_bbt.c 2011-10-01 23:33:25 +02:00
nand_ecc.c nand: remove dead code and suspend/resume 2010-10-11 15:10:35 -05:00
nand_ids.c nand: constify id/manu tables 2010-12-17 14:32:11 -06:00
nand_plat.c mtd: nand_plat: add simple GPIO framework DEV_READY option 2010-07-08 16:52:12 -05:00
nand_spl_simple.c spl: add NAND Library to new SPL 2011-09-30 22:00:54 +02:00
nand_util.c NAND: Really ignore bad blocks when scrubbing 2011-10-03 18:35:12 -05:00
ndfc.c NAND: Add 16bit NAND support for the NDFC 2011-07-01 15:56:52 -05:00
nomadik.c nomadik/nand: fix 'ecc512' discards qualifiers from pointer target type 2009-02-22 17:56:50 +01:00
omap_gpmc.c spl: add NAND Library to new SPL 2011-09-30 22:00:54 +02:00
s3c64xx.c s3c64xx: move s3c64xx header files to asm-arm/arch-s3c64xx 2009-11-27 16:26:13 -06:00
s3c2410_nand.c fix s3c2410_nand timing default values 2010-12-06 18:28:48 -06:00
spr_nand.c mod change 755 => 644 for multiple files 2010-03-21 22:22:53 +01:00