]> git.sur5r.net Git - u-boot/commitdiff
mmc: sdhci: Clear high speed if not supported
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 12 Jan 2016 09:42:15 +0000 (15:12 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Jan 2016 14:55:54 +0000 (15:55 +0100)
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>
drivers/mmc/sdhci.c

index 02d71b934409f56e2ede04c31e40f611fc914987..ff770b16e27a6e25c50fa6a23226832865f2e324 100644 (file)
@@ -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;