Skip to content

Commit 1a0ae37

Browse files
Seungwon Jeoncjb
authored andcommitted
mmc: rtsx: clarify DDR timing mode between SD-UHS and eMMC
Added MMC_DDR52 as eMMC's DDR mode is distinguished from SD-UHS. CC: Wei WANG <wei_wang@realsil.com.cn> CC: Samuel Ortiz <sameo@linux.intel.com> 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 4039ff4 commit 1a0ae37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mmc/host/rtsx_pci_sdmmc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ static int sd_set_timing(struct realtek_pci_sdmmc *host, unsigned char timing)
10751075
rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, CLK_CTL, CLK_LOW_FREQ, 0);
10761076
break;
10771077

1078+
case MMC_TIMING_MMC_DDR52:
10781079
case MMC_TIMING_UHS_DDR50:
10791080
rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_CFG1,
10801081
0x0C | SD_ASYNC_FIFO_NOT_RST,
@@ -1155,6 +1156,7 @@ static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
11551156
host->vpclk = true;
11561157
host->double_clk = false;
11571158
break;
1159+
case MMC_TIMING_MMC_DDR52:
11581160
case MMC_TIMING_UHS_DDR50:
11591161
case MMC_TIMING_UHS_SDR25:
11601162
host->ssc_depth = RTSX_SSC_DEPTH_1M;

0 commit comments

Comments
 (0)