Skip to content
This repository was archived by the owner on Oct 5, 2018. It is now read-only.

Commit 0ed0104

Browse files
jh80chungldts
authored andcommitted
mmc: dw_mmc: fix the wrong setting for UHS-DDR50 mode
When card is running with DDR mode, dwmmc needs to set DDR_REG bit at UHS_REG register. Before this patch, dwmmc controller doesn't consider this. If this patch is not applied, CRC or other error shoulds be occurred. Signed-off-by: Jaehoon Chung <[email protected]> Reviewed-by: Alim Akhtar <[email protected]> Signed-off-by: Ulf Hansson <[email protected]> Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
1 parent 033a7af commit 0ed0104

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mmc/host/dw_mmc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,7 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
10411041

10421042
/* DDR mode set */
10431043
if (ios->timing == MMC_TIMING_MMC_DDR52 ||
1044+
ios->timing == MMC_TIMING_UHS_DDR50 ||
10441045
ios->timing == MMC_TIMING_MMC_HS400)
10451046
regs |= ((0x1 << slot->id) << 16);
10461047
else

0 commit comments

Comments
 (0)