Skip to content

Commit bb8175a

Browse files
Seungwon Jeoncjb
authored andcommitted
mmc: sdhci: clarify DDR timing mode between SD-UHS and eMMC
Added MMC_DDR52 as eMMC's DDR mode is distinguished from SD-UHS. Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
1 parent cab3a80 commit bb8175a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/mmc/host/sdhci.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,7 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios)
15101510

15111511
/* In case of UHS-I modes, set High Speed Enable */
15121512
if ((ios->timing == MMC_TIMING_MMC_HS200) ||
1513+
(ios->timing == MMC_TIMING_MMC_DDR52) ||
15131514
(ios->timing == MMC_TIMING_UHS_SDR50) ||
15141515
(ios->timing == MMC_TIMING_UHS_SDR104) ||
15151516
(ios->timing == MMC_TIMING_UHS_DDR50) ||
@@ -1570,7 +1571,8 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios)
15701571
ctrl_2 |= SDHCI_CTRL_UHS_SDR25;
15711572
else if (ios->timing == MMC_TIMING_UHS_SDR50)
15721573
ctrl_2 |= SDHCI_CTRL_UHS_SDR50;
1573-
else if (ios->timing == MMC_TIMING_UHS_DDR50)
1574+
else if ((ios->timing == MMC_TIMING_UHS_DDR50) ||
1575+
(ios->timing == MMC_TIMING_MMC_DDR52))
15741576
ctrl_2 |= SDHCI_CTRL_UHS_DDR50;
15751577
sdhci_writew(host, ctrl_2, SDHCI_HOST_CONTROL2);
15761578
}

0 commit comments

Comments
 (0)