mmc: sdhci-pci: Fix Braswell eMMC timeout clock frequency
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 24 Sep 2014 07:27:33 +0000 (10:27 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 3 Oct 2014 12:25:35 +0000 (14:25 +0200)
Braswell eMMC host controller specifies an incorrect
timeout clock frequncy in the capabilities registers.
The correct value is 1 MHz.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pci.c

index 4ca6ae6..6119297 100644 (file)
@@ -272,6 +272,8 @@ static int byt_emmc_probe_slot(struct sdhci_pci_slot *slot)
                                 MMC_CAP_HW_RESET | MMC_CAP_1_8V_DDR;
        slot->host->mmc->caps2 |= MMC_CAP2_HC_ERASE_SZ;
        slot->hw_reset = sdhci_pci_int_hw_reset;
+       if (slot->chip->pdev->device == PCI_DEVICE_ID_INTEL_BSW_EMMC)
+               slot->host->timeout_clk = 1000; /* 1000 kHz i.e. 1 MHz */
        return 0;
 }