summaryrefslogtreecommitdiffstats
path: root/drivers/mci/atmel_mci.c
diff options
context:
space:
mode:
authorHubert Feurstein <h.feurstein@gmail.com>2011-06-22 00:10:16 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-06-22 00:22:23 +0200
commitc034843ada2d12caad4f5b874dc24e5dc2a7848f (patch)
tree77f3810dfb59a327d4124d3a19233f33f2db5fed /drivers/mci/atmel_mci.c
parent1ecd192be8d583af2b4f4c98da4abeecac625d91 (diff)
downloadbarebox-c034843ada2d12caad4f5b874dc24e5dc2a7848f.tar.gz
barebox-c034843ada2d12caad4f5b874dc24e5dc2a7848f.tar.xz
atmel-mci: fix initialization of 8bit-bus-width-mode for at91sam9g45
When the bus_width was set to 8, then only one data-line has been initialized. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/atmel_mci.c')
-rw-r--r--drivers/mci/atmel_mci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c
index 49a7851667..d8bcf8159b 100644
--- a/drivers/mci/atmel_mci.c
+++ b/drivers/mci/atmel_mci.c
@@ -451,9 +451,9 @@ static int mci_probe(struct device_d *hw_dev)
host->mci.init = mci_reset;
host->mci.host_caps = pd->host_caps;
- if (pd->bus_width == 4)
+ if (pd->bus_width >= 4)
host->mci.host_caps |= MMC_MODE_4BIT;
- else if (pd->bus_width == 8)
+ if (pd->bus_width == 8)
host->mci.host_caps |= MMC_MODE_8BIT;
host->base = (void __iomem *)hw_dev->map_base;