mmc:fix: Set mmc width according to MMC host capabilities u-boot_fixes_v1
authorLukasz Majewski <l.majewski@samsung.com>
Mon, 12 Mar 2012 10:36:38 +0000 (11:36 +0100)
committerLukasz Majewski <l.majewski@samsung.com>
Mon, 12 Mar 2012 16:39:16 +0000 (17:39 +0100)
commit40ca519e20e06c1adc006f44d1e26b69dd38bf01
treede38d1fa2987a282546483e50e4ce41d1c0c7452
parentc7a553aa3f654ebde2169b59cfc10c207227d8ce
mmc:fix: Set mmc width according to MMC host capabilities

This patch sets the MMC width according to the MMC host capabilities.
It turned out, that there are some targets (e.g. GONI), which are able
to read data from SPI only at 4 bit mode.
This patch restricts the width number according to the MMC host.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Andy Fleming <afleming@gmail.com>
drivers/mmc/mmc.c
include/mmc.h