mmc: tegra: fix eMMC DDR52 mode
authorStefan Agner <stefan@agner.ch>
Thu, 12 Jul 2018 07:39:03 +0000 (09:39 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Jul 2018 09:38:14 +0000 (11:38 +0200)
Make sure the clock is doubled when using eMMC DDR52 mode.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-tegra.c

index 5355d06..e231c3e 100644 (file)
@@ -228,7 +228,8 @@ static void tegra_sdhci_set_uhs_signaling(struct sdhci_host *host,
        struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
        struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host);
 
-       if (timing == MMC_TIMING_UHS_DDR50)
+       if (timing == MMC_TIMING_UHS_DDR50 ||
+           timing == MMC_TIMING_MMC_DDR52)
                tegra_host->ddr_signaling = true;
 
        sdhci_set_uhs_signaling(host, timing);