]> git.sur5r.net Git - u-boot/commitdiff
dm: mmc: socfpga: call dwmci_probe()
authorPatrick Bruenn <p.bruenn@beckhoff.com>
Tue, 6 Mar 2018 08:07:23 +0000 (09:07 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 8 May 2018 04:12:33 +0000 (13:12 +0900)
On a socfpga_cyclone5 based board the SD card, was never powered up. For
other dw_mmc based SoCs dwmci_probe() is called in the platform specific
probe(). It seems this call is missing for socfpga_dw_mmc.

With this change DWMCI_PWREN is set by dmwci_init().

Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/socfpga_dw_mmc.c

index fa0e449b21bdfdcd750bcd88325744b3f6d16513..d0a0362d7ea6213bcc209d8b53637d1e9ae271c2 100644 (file)
@@ -123,7 +123,7 @@ static int socfpga_dwmmc_probe(struct udevice *dev)
        upriv->mmc = host->mmc;
        host->mmc->dev = dev;
 
-       return 0;
+       return dwmci_probe(dev);
 }
 
 static int socfpga_dwmmc_bind(struct udevice *dev)