From: Siva Durga Prasad Paladugu Date: Wed, 1 Feb 2017 19:40:49 +0000 (+0530) Subject: mmc: sdhci: Add quirk for 1.8v switching not supported X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d38fd1b472c389628a9cfc4dc3934f24a5a03654;p=thirdparty%2Fu-boot.git mmc: sdhci: Add quirk for 1.8v switching not supported 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 Signed-off-by: Michal Simek --- diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 2f8c033ccc8..01ef1d47457 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -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); diff --git a/include/sdhci.h b/include/sdhci.h index 9cbf9fe1f91..f4c20103b76 100644 --- a/include/sdhci.h +++ b/include/sdhci.h @@ -231,6 +231,7 @@ #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;