]> git.sur5r.net Git - u-boot/commitdiff
mmc: dw_mmc: fixed the wrong bit control
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 14 Jan 2015 08:37:53 +0000 (17:37 +0900)
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>
Mon, 23 Feb 2015 17:35:13 +0000 (19:35 +0200)
If mode is not DDR-mode, then it needs to clear it.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/dw_mmc.c

index b18c75dee2c815a7a9ddd82eac826109544cc3c0..76fa0b0534d1b5b135317ec2841b5bba7d472378 100644 (file)
@@ -321,7 +321,7 @@ static void dwmci_set_ios(struct mmc *mmc)
        if (mmc->ddr_mode)
                regs |= DWMCI_DDR_MODE;
        else
-               regs &= DWMCI_DDR_MODE;
+               regs &= ~DWMCI_DDR_MODE;
 
        dwmci_writel(host, DWMCI_UHS_REG, regs);