Skip to content

Commit 83cc16d

Browse files
Dong Aishengcjb
authored andcommitted
mmc: core: mmc DDR mode should not depend on UHS_DDR50
The MMC_CAP_UHS_DDR50 must work on 1.8v. However, the eMMC DDR mode can work on either 1.8v or 3.3v and should not depend on UHS_DDR50. So get rid of this limitation to let controller without 1.8v signal voltage support can also work for eMMC DDR mode if it claims. Signed-off-by: Dong Aisheng <[email protected]> Acked-by: Shawn Guo <[email protected]> Acked-by: Ulf Hansson <[email protected]> Signed-off-by: Chris Ball <[email protected]>
1 parent e2997c9 commit 83cc16d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/mmc/core/mmc.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,14 +1119,10 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
11191119
*/
11201120
if (mmc_card_highspeed(card)) {
11211121
if ((card->ext_csd.card_type & EXT_CSD_CARD_TYPE_DDR_1_8V)
1122-
&& ((host->caps & (MMC_CAP_1_8V_DDR |
1123-
MMC_CAP_UHS_DDR50))
1124-
== (MMC_CAP_1_8V_DDR | MMC_CAP_UHS_DDR50)))
1122+
&& (host->caps & MMC_CAP_1_8V_DDR))
11251123
ddr = MMC_1_8V_DDR_MODE;
11261124
else if ((card->ext_csd.card_type & EXT_CSD_CARD_TYPE_DDR_1_2V)
1127-
&& ((host->caps & (MMC_CAP_1_2V_DDR |
1128-
MMC_CAP_UHS_DDR50))
1129-
== (MMC_CAP_1_2V_DDR | MMC_CAP_UHS_DDR50)))
1125+
&& (host->caps & MMC_CAP_1_2V_DDR))
11301126
ddr = MMC_1_2V_DDR_MODE;
11311127
}
11321128

0 commit comments

Comments
 (0)