summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorHarry Hong <hhong@nvidia.com>2012-02-08 14:44:21 +0900
committerSimone Willett <swillett@nvidia.com>2012-03-06 18:15:14 -0800
commite2b7ea5f961f096b5a2a2791e80835742649552d (patch)
tree7260b748db6099113bbf170ba127f7fd4e23a335 /drivers/mmc
parent00cd4042de02f2f10f5e0e59ef7df2c6826f9401 (diff)
sdhci: Don't set highspeed mode
if SDHCI_QUIRK_NO_HISPD_BIT is set in host->quirks, don't set SDHCI_CTRL_HISPD in sdhci_host_control register. bug 929985 Signed-off-by: Harry Hong <hhong@nvidia.com> Reviewed-on: http://git-master/r/79933 (cherry picked from commit 194670660af90b2bb7bc0efea920332459296141) Change-Id: I7b5f58f5078886309610e9e4cc2bad83f0788168 Reviewed-on: http://git-master/r/87704 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index c25f54fd26b8..96651c6d3e33 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1351,11 +1351,12 @@ static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
unsigned int clock;
/* In case of UHS-I modes, set High Speed Enable */
- if ((ios->timing == MMC_TIMING_UHS_SDR50) ||
+ if (((ios->timing == MMC_TIMING_UHS_SDR50) ||
(ios->timing == MMC_TIMING_UHS_SDR104) ||
(ios->timing == MMC_TIMING_UHS_DDR50) ||
(ios->timing == MMC_TIMING_UHS_SDR25) ||
(ios->timing == MMC_TIMING_UHS_SDR12))
+ && !(host->quirks & SDHCI_QUIRK_NO_HISPD_BIT))
ctrl |= SDHCI_CTRL_HISPD;
ctrl_2 = sdhci_readw(host, SDHCI_HOST_CONTROL2);