aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/host/dw_mmc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index c583b943f615..94e223825a45 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -707,12 +707,15 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
707 break; 707 break;
708 } 708 }
709 709
710 regs = mci_readl(slot->host, UHS_REG);
711
710 /* DDR mode set */ 712 /* DDR mode set */
711 if (ios->timing == MMC_TIMING_UHS_DDR50) { 713 if (ios->timing == MMC_TIMING_UHS_DDR50)
712 regs = mci_readl(slot->host, UHS_REG);
713 regs |= (0x1 << slot->id) << 16; 714 regs |= (0x1 << slot->id) << 16;
714 mci_writel(slot->host, UHS_REG, regs); 715 else
715 } 716 regs &= ~(0x1 << slot->id) << 16;
717
718 mci_writel(slot->host, UHS_REG, regs);
716 719
717 if (ios->clock) { 720 if (ios->clock) {
718 /* 721 /*