diff mbox

[U-Boot,4/4] mmc: dw_mmc: Use active DDR mode flag

Message ID 1417438752-18931-5-git-send-email-andrew_gabbasov@mentor.com
State Accepted
Delegated to: Pantelis Antoniou
Headers show

Commit Message

Gabbasov, Andrew Dec. 1, 2014, 12:59 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Pantelis Antoniou Dec. 12, 2014, 7:13 p.m. UTC | #1
Hi Andrew,

> On Dec 1, 2014, at 14:59 , Andrew Gabbasov <andrew_gabbasov@mentor.com> wrote:
> 
> 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 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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;
> -- 
> 2.1.0

Applied, thanks

— Pantelis
diff mbox

Patch

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;