Skip to content

Commit cab3a80

Browse files
Seungwon Jeoncjb
authored andcommitted
mmc: dw_mmc: clarify DDR timing mode between SD-UHS and eMMC
Replaced UHS_DDR50 with MMC_DDR52. And MMC_CAP_UHS_DDR50 is removed because of non-implementation of UHS signaling. Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com> Acked-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
1 parent 1a0ae37 commit cab3a80

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/mmc/host/dw_mmc-exynos.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static void dw_mci_exynos_set_ios(struct dw_mci *host, struct mmc_ios *ios)
187187
unsigned long actual;
188188
u8 div = priv->ciu_div + 1;
189189

190-
if (ios->timing == MMC_TIMING_UHS_DDR50) {
190+
if (ios->timing == MMC_TIMING_MMC_DDR52) {
191191
mci_writel(host, CLKSEL, priv->ddr_timing);
192192
/* Should be double rate for DDR mode */
193193
if (ios->bus_width == MMC_BUS_WIDTH_8)
@@ -386,8 +386,7 @@ static int dw_mci_exynos_execute_tuning(struct dw_mci_slot *slot, u32 opcode,
386386

387387
/* Common capabilities of Exynos4/Exynos5 SoC */
388388
static unsigned long exynos_dwmmc_caps[4] = {
389-
MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR |
390-
MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23,
389+
MMC_CAP_1_8V_DDR | MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23,
391390
MMC_CAP_CMD23,
392391
MMC_CAP_CMD23,
393392
MMC_CAP_CMD23,

drivers/mmc/host/dw_mmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
962962
regs = mci_readl(slot->host, UHS_REG);
963963

964964
/* DDR mode set */
965-
if (ios->timing == MMC_TIMING_UHS_DDR50)
965+
if (ios->timing == MMC_TIMING_MMC_DDR52)
966966
regs |= ((0x1 << slot->id) << 16);
967967
else
968968
regs &= ~((0x1 << slot->id) << 16);

0 commit comments

Comments
 (0)