]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: sdhci: Add quirk for 1.8v switching not supported
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 1 Feb 2017 19:40:49 +0000 (01:10 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 2 Feb 2017 09:29:45 +0000 (10:29 +0100)
Add quirk if voltage switching to 1.8v is broken, in this
case no UHS modes were supported

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mmc/sdhci.c
include/sdhci.h

index 2f8c033ccc8b4cb1640a7a5715ec54c5249a9327..01ef1d4745743c82d05b1dd62313424eea913026 100644 (file)
@@ -766,7 +766,8 @@ int sdhci_setup_cfg(struct mmc_config *cfg, struct sdhci_host *host,
        if (SDHCI_GET_VERSION(host) >= SDHCI_SPEC_300)
                caps_1 = sdhci_readl(host, SDHCI_CAPABILITIES_1);
 
-       if (!(cfg->voltages & MMC_VDD_165_195))
+       if (!(cfg->voltages & MMC_VDD_165_195) ||
+           (host->quirks & SDHCI_QUIRK_NO_1_8_V))
                caps_1 &= ~(SDHCI_SUPPORT_SDR104 | SDHCI_SUPPORT_SDR50 |
                            SDHCI_SUPPORT_DDR50);
 
index 9cbf9fe1f91386ad4a4350deecbdf5e03fbd2eaf..f4c20103b7623f94cb622dab379812172a5caf67 100644 (file)
 #define SDHCI_QUIRK_WAIT_SEND_CMD      (1 << 6)
 #define SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER (1 << 7)
 #define SDHCI_QUIRK_USE_WIDE8          (1 << 8)
+#define SDHCI_QUIRK_NO_1_8_V           (1 << 9)
 
 /* to make gcc happy */
 struct sdhci_host;