u-boot/drivers/mmc
Rabin Vincent 0b453ffe28 mmc: fix response decoding on little endian
The mmc code defines the response as an array of chars.  However, it
access the response bytes both as (i) an array of four uints (with
casts) and (ii) as individual chars.  The former case is used more
often, including by the driver when it assigns the response.

The char-wise accesses are broken on little endian systems because they
assume that the bytes in the uints are in big endian byte order.

This patch fixes this by changing the response to be an array of four
uints and replacing the char-wise accesses with equivalent uint-wise
accesses.

Signed-off-by: Rabin Vincent <rabin@rab.in>
2009-06-02 17:18:57 -05:00
..
atmel_mci.c Convert mmc_init to mmc_legacy_init 2009-02-16 18:07:40 -06:00
atmel_mci.h mmc: Move atmel_mci driver into drivers/mmc 2008-07-10 00:05:52 +02:00
bfin_sdh.c Blackfin: convert bfin_sdh to legacy mmc 2009-04-02 06:42:05 -04:00
bfin_sdh.h Blackfin: add driver for on-chip MMC/SD controller 2009-02-02 12:27:18 -05:00
fsl_esdhc.c Add support for the Freescale eSDHC found on 8379 and 8536 SoCs 2009-02-16 18:07:42 -06:00
Makefile pxa: move mmc drivers to drivers/mmc 2009-02-20 03:47:50 +01:00
mmc.c mmc: fix response decoding on little endian 2009-06-02 17:18:57 -05:00
omap3_mmc.c OMAP3: Clean up MMC code 2009-02-22 18:29:10 +01:00
pxa_mmc.c ARM:PXA Use new definitions in mmc.h 2009-02-20 03:47:50 +01:00
pxa_mmc.h pxa: move mmc drivers to drivers/mmc 2009-02-20 03:47:50 +01:00