projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5af8f45
)
mmc: dw_mmc: Use active DDR mode flag
author
Andrew Gabbasov
<andrew_gabbasov@mentor.com>
Mon, 1 Dec 2014 12:59:12 +0000
(06:59 -0600)
committer
Pantelis Antoniou
<pantelis.antoniou@konsulko.com>
Fri, 12 Dec 2014 19:09:01 +0000
(21:09 +0200)
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>
drivers/mmc/dw_mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/dw_mmc.c
b/drivers/mmc/dw_mmc.c
index 785eed567c3f370e45fb3fc2febd6887750acaa7..b18c75dee2c815a7a9ddd82eac826109544cc3c0 100644
(file)
--- 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;