u-boot-2016/drivers/mtd/nand
Feng Kan 68e74567cf ppc4xx: Fix ECC Correction bug with SMC ordering for NDFC driver
Fix ECC Correction bug where the byte offset location were double
flipped causing correction routine to toggle the wrong byte location
in the ECC segment. The ndfc_calculate_ecc routine change the order
of getting the ECC code.
        /* The NDFC uses Smart Media (SMC) bytes order */
        ecc_code[0] = p[2];
        ecc_code[1] = p[1];
        ecc_code[2] = p[3];
But in the Correction algorithm when calculating the byte offset
location, the s1 is used as the upper part of the address. Which
again reverse the order making the final byte offset address
location incorrect.
	byteoffs = (s1 << 0) & 0x80;
	.
	.
	byteoffs |= (s0 >> 4) & 0x08;
The order is change to read it in straight and let the correction
function to revert it to SMC order.

Signed-off-by: Feng Kan <fkan@amcc.com>
Acked-by: Victor Gallardo <vgallardo@amcc.com>
Acked-by: Prodyut Hazarika <phazarika@amcc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
2009-08-25 17:41:42 +02:00
..
atmel_nand.c at91sam9/at91cap: move nand drivers to drivers/mtd/nand 2009-03-22 13:22:24 +01:00
bfin_nand.c Blackfin: nand: flush peripheral before polling it 2009-04-06 17:37:37 -04:00
davinci_nand.c Typo fix: use CONFIG_SOC_DM644X, not CONFIG_SOC_DM646. 2009-07-16 17:52:01 -05:00
diskonchip.c Remove legacy NAND and disk on chip code. 2009-07-16 19:07:47 -05:00
fsl_elbc_nand.c fsl_elbc_nand: redirect the pointer of bbt pattern to RAM 2009-07-07 17:58:10 -05:00
fsl_upm.c Add wait flags to support board/chip specific delays 2009-03-23 15:53:40 -05:00
kirkwood_nand.c nand: Add Marvell Kirkwood NAND driver 2009-07-08 21:20:10 +02:00
Makefile Remove legacy NAND and disk on chip code. 2009-07-16 19:07:47 -05:00
mpc5121_nfc.c nand/mpc512x: Add MPC512x NAND support (NFC) 2009-06-12 20:47:19 +02:00
nand.c mtd: Introduce CONFIG_MTD_DEVICE to select compilation of mtdcore.o 2009-06-12 20:45:47 +02:00
nand_base.c mtd: nand: Include linux/mtd/partitions.h in nand_base.h 2009-04-28 01:15:37 +02:00
nand_bbt.c NAND: sync with 2.6.27 2008-10-29 10:42:16 -05:00
nand_ecc.c nand: Fix problem with ECC ordering for PPC4xx NDFC platforms 2009-05-23 12:51:39 +02:00
nand_ids.c NAND: sync with 2.6.27 2008-10-29 10:42:16 -05:00
nand_plat.c mtd: nand: new base driver for memory mapped nand devices 2009-07-07 17:58:04 -05:00
nand_util.c add WATCHDOG_RESET() on nand write and read 2009-08-21 22:55:21 +02:00
ndfc.c ppc4xx: Fix ECC Correction bug with SMC ordering for NDFC driver 2009-08-25 17:41:42 +02:00
nomadik.c nomadik/nand: fix 'ecc512' discards qualifiers from pointer target type 2009-02-22 17:56:50 +01:00
omap_gpmc.c omap3: replace all instances of gpmc config struct by one global 2009-08-08 11:34:11 +02:00
s3c64xx.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
s3c2410_nand.c s3c2410: move nand driver to drivers/mtd/nand 2009-03-30 18:58:40 +02:00