mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 22:21:49 +01:00
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>
This commit is contained in:
parent
5af8f45cd0
commit
2b8a9692f9
@ -318,7 +318,7 @@ static void dwmci_set_ios(struct mmc *mmc)
|
|||||||
dwmci_writel(host, DWMCI_CTYPE, ctype);
|
dwmci_writel(host, DWMCI_CTYPE, ctype);
|
||||||
|
|
||||||
regs = dwmci_readl(host, DWMCI_UHS_REG);
|
regs = dwmci_readl(host, DWMCI_UHS_REG);
|
||||||
if (mmc->card_caps & MMC_MODE_DDR_52MHz)
|
if (mmc->ddr_mode)
|
||||||
regs |= DWMCI_DDR_MODE;
|
regs |= DWMCI_DDR_MODE;
|
||||||
else
|
else
|
||||||
regs &= DWMCI_DDR_MODE;
|
regs &= DWMCI_DDR_MODE;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user