summaryrefslogtreecommitdiff
path: root/drivers/mmc/sdhci.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-06-14 16:06:49 -0400
committerTom Rini <trini@ti.com>2013-06-14 16:06:49 -0400
commitdfdb3d37dd0fa8bdabdf7b5ffb597af470e74621 (patch)
treed18616299f81b663fb2cda18f30423df796121f3 /drivers/mmc/sdhci.c
parent216a793cc1702227fd4ad624080f585038d1fa45 (diff)
parent91171091c6733cd290e18bf25a8aedbe682d2430 (diff)
downloadu-boot-imx-dfdb3d37dd0fa8bdabdf7b5ffb597af470e74621.zip
u-boot-imx-dfdb3d37dd0fa8bdabdf7b5ffb597af470e74621.tar.gz
u-boot-imx-dfdb3d37dd0fa8bdabdf7b5ffb597af470e74621.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-mmc
Diffstat (limited to 'drivers/mmc/sdhci.c')
-rw-r--r--drivers/mmc/sdhci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 1eaea04..c5631bf 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -486,8 +486,10 @@ int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk)
mmc->voltages |= host->voltages;
mmc->host_caps = MMC_MODE_HS | MMC_MODE_HS_52MHz | MMC_MODE_4BIT;
- if (caps & SDHCI_CAN_DO_8BIT)
- mmc->host_caps |= MMC_MODE_8BIT;
+ if ((host->version & SDHCI_SPEC_VER_MASK) >= SDHCI_SPEC_300) {
+ if (caps & SDHCI_CAN_DO_8BIT)
+ mmc->host_caps |= MMC_MODE_8BIT;
+ }
if (host->host_caps)
mmc->host_caps |= host->host_caps;