summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>2014-12-01 06:59:12 -0600
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>2014-12-12 21:09:01 +0200
commit2b8a9692f9d8a744b6a93a9bed115ca46541ca1f (patch)
tree900084a087c0995a2b7503675eec4ac506f04925
parent5af8f45cd049cf01790a17ff68e61303bc08abc3 (diff)
downloadu-boot-imx-2b8a9692f9d8a744b6a93a9bed115ca46541ca1f.zip
u-boot-imx-2b8a9692f9d8a744b6a93a9bed115ca46541ca1f.tar.gz
u-boot-imx-2b8a9692f9d8a744b6a93a9bed115ca46541ca1f.tar.bz2
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 <andrew_gabbasov@mentor.com>
-rw-r--r--drivers/mmc/dw_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
index 785eed5..b18c75d 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;