summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2016-01-12 15:12:15 +0530
committerMichal Simek <michal.simek@xilinx.com>2016-01-27 15:55:54 +0100
commit429790026021d522d51617217d4b86218cca5750 (patch)
tree91882a43fd8c8fb98762ae99e436b205c81d2a72
parenta57a4a5d830cb81bf73f241532d7867606ed61fb (diff)
downloadtalos-obmc-uboot-429790026021d522d51617217d4b86218cca5750.tar.gz
talos-obmc-uboot-429790026021d522d51617217d4b86218cca5750.zip
mmc: sdhci: Clear high speed if not supported
Clear high speed bit if it was not supported by the driver. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Emil Lenchak <emill@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r--drivers/mmc/sdhci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 02d71b9344..ff770b16e2 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -530,6 +530,10 @@ int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk)
if (caps & SDHCI_CAN_DO_8BIT)
host->cfg.host_caps |= MMC_MODE_8BIT;
}
+
+ if (host->quirks & SDHCI_QUIRK_NO_HISPD_BIT)
+ host->cfg.host_caps &= ~(MMC_MODE_HS | MMC_MODE_HS_52MHz);
+
if (host->host_caps)
host->cfg.host_caps |= host->host_caps;
OpenPOWER on IntegriCloud