]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
dm: mmc: rockchip: Enable CONFIG_DM_MMC_OPS for all boards
authorSimon Glass <sjg@chromium.org>
Mon, 13 Jun 2016 05:30:24 +0000 (23:30 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 11 Jul 2016 20:06:44 +0000 (14:06 -0600)
Enable this option to move rockchip over to use driver model for MMC
operations.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/Kconfig
drivers/mmc/rockchip_dw_mmc.c

index 8004c17dbc78b4ec737ef606dee6348da714e331..585b408ee37001107203ad277c6b7bf442048355 100644 (file)
@@ -850,6 +850,7 @@ config ARCH_ROCKCHIP
        select DM_GPIO
        select DM_I2C
        select DM_MMC
+       select DM_MMC_OPS
        select DM_SERIAL
        select DM_SPI
        select DM_SPI_FLASH
index 7bd850a09cf414dd1b9ed196411aa67dd24dd4d9..691a51557de4e89b41f3b975618fe6ba28a7c111 100644 (file)
@@ -111,7 +111,7 @@ static int rockchip_dwmmc_probe(struct udevice *dev)
        host->mmc->dev = dev;
        upriv->mmc = host->mmc;
 
-       return 0;
+       return dwmci_probe(dev);
 }
 
 static int rockchip_dwmmc_bind(struct udevice *dev)
@@ -136,6 +136,7 @@ U_BOOT_DRIVER(rockchip_dwmmc_drv) = {
        .id             = UCLASS_MMC,
        .of_match       = rockchip_dwmmc_ids,
        .ofdata_to_platdata = rockchip_dwmmc_ofdata_to_platdata,
+       .ops            = &dm_dwmci_ops,
        .bind           = rockchip_dwmmc_bind,
        .probe          = rockchip_dwmmc_probe,
        .priv_auto_alloc_size = sizeof(struct rockchip_dwmmc_priv),