u-boot-brain/drivers
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
..
bios_emulator Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
block ATA: Squash warnings in mxc_ata. 2011-09-30 22:01:06 +02:00
dma fsl_dma: fix support for 83xx DMA engine 2011-07-06 19:09:27 -05:00
fpga FPGA: constify Lattice FPGA code 2011-09-05 11:41:42 +02:00
gpio gpio: Add GPIO driver framework for Marvell SoCs 2011-09-30 22:00:52 +02:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c I2C: mv_i2c: fix multi-bus init issue 2011-10-03 11:50:09 +02:00
input Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
misc cosmetic: fsl_pmic: cosmetic for the help message 2011-09-30 22:01:00 +02:00
mmc mmc: omap: config VMMC, MMC1_PBIAS 2011-09-30 22:00:55 +02:00
mtd NAND: davinci: choose correct 1-bit h/w ECC reg 2011-10-10 15:28:05 -05:00
net drivers/net/smc91111.c: fix warning: variable ... set but not used 2011-10-09 23:24:49 +02:00
pci cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
pcmcia PPC: Cleanup tqm8xx_pcmcia.c 2011-10-05 22:03:09 +02:00
power mmc: omap: config VMMC, MMC1_PBIAS 2011-09-30 22:00:55 +02:00
qe fsl: Change fsl_phy_enet_if to phy_interface_t 2011-04-20 15:09:35 -05:00
rtc rtc, davinci: add support for davinci internal RTC 2011-09-30 22:00:58 +02:00
serial serial: uartlite: Support for SERIAL_MULTI 2011-10-09 23:24:47 +02:00
spi IMX: uniform GPIO interface using GPIO framework 2011-09-04 11:36:11 +02:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb drivers/usb/host/ohci-hcd.c: fix warning: variable ... set but not used 2011-10-09 23:24:49 +02:00
video GCC4.6: Squash warnings in ipu_disp.c 2011-10-01 23:26:36 +02:00
watchdog AT91: fix at91sam_wdt.c to reworked header files 2011-05-18 07:56:51 +02:00