u-boot-brain/drivers
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
..
bios_emulator Update Freescale copyrights to remove "All Rights Reserved" 2009-07-29 09:59:22 +02:00
block Update Freescale copyrights to remove "All Rights Reserved" 2009-07-29 09:59:22 +02:00
dma 83xx: Add support for fsl_dma driver 2009-07-02 11:15:57 -05:00
fpga fpga: Fix Spartan III FPGA booting 2009-02-21 22:52:44 +01:00
gpio Kirkwood: add Marvell Kirkwood gpio driver 2009-07-23 00:19:28 +02:00
hwmon dtt, lm81: move unneccessary printf into a debug printf 2009-08-11 21:59:08 +02:00
i2c Minor coding style cleanup. 2009-08-10 10:38:34 +02:00
input stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
misc OMAP3 Move twl4030 power and led functions 2009-07-29 09:57:30 +02:00
mmc Minor coding style cleanup. 2009-08-10 10:38:34 +02:00
mtd ppc4xx: Fix ECC Correction bug with SMC ordering for NDFC driver 2009-08-25 17:41:42 +02:00
net tsec: Wait for auto-negotiation to complete without link 2009-08-21 10:35:30 -07:00
pci mpc83xx: Add esd VME8349 board support 2009-07-27 18:36:36 -05:00
pcmcia mpc8xx_pcmcia: move CONFIG_8xx out of .c file and into Makefile 2009-02-18 00:51:21 +01:00
power OMAP3 Move twl4030 mmc function 2009-07-29 09:57:43 +02:00
qe UEC FIXED PHY: Determine fixed-phy port using UEC interface name. 2009-08-10 16:07:54 -07:00
rtc Update CHANGELOG, coding style cleanup. 2009-04-05 00:27:57 +02:00
serial stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
spi Coldfire: Consolidate DSPI driver 2009-07-14 09:46:09 -05:00
twserial drivers/twserial: Add protocol driver for "three wire serial" interface. 2009-03-30 09:38:36 +02:00
usb usb: bugfix driver/usb/host/ehci-hcd.c function ehci_submit_root 2009-07-23 23:27:06 +02:00
video bus_vcxk.c: fix warning: unused variable 'lineptr' 2009-08-09 22:49:16 +02:00
watchdog at91sam9: add watchdog support 2009-04-04 20:42:19 +02:00