From: Andrew Gabbasov Date: Mon, 1 Dec 2014 12:59:12 +0000 (-0600) Subject: mmc: dw_mmc: Use active DDR mode flag X-Git-Tag: v2015.01-rc4~26^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2b8a9692f9d8a744b6a93a9bed115ca46541ca1f;p=oweals%2Fu-boot.git mmc: dw_mmc: Use active DDR mode flag The card_caps bit should denote the card capability to use DDR mode, but we need the flag indicating that the DDR mode is active. Signed-off-by: Andrew Gabbasov --- diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index 785eed567c..b18c75dee2 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -318,7 +318,7 @@ static void dwmci_set_ios(struct mmc *mmc) dwmci_writel(host, DWMCI_CTYPE, ctype); regs = dwmci_readl(host, DWMCI_UHS_REG); - if (mmc->card_caps & MMC_MODE_DDR_52MHz) + if (mmc->ddr_mode) regs |= DWMCI_DDR_MODE; else regs &= DWMCI_DDR_MODE;