ARM: davinci: da850evm: Support DM_MMC
authorAdam Ford <aford173@gmail.com>
Thu, 9 Aug 2018 11:15:13 +0000 (06:15 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 12 Sep 2018 01:41:15 +0000 (21:41 -0400)
With the updated driver available to support DM_MMC, this patch
enables DM_MMC for da850evm.

Signed-off-by: Adam Ford <aford173@gmail.com>
board/davinci/da8xxevm/da850evm.c
configs/da850evm_defconfig

index 5583b45792c88d0511ec9720d9b8c309bbe6bf81..e8ec553f99ef124f7be1dd6d32301d8b847a1095 100644 (file)
@@ -204,6 +204,7 @@ int misc_init_r(void)
        return 0;
 }
 
+#ifndef CONFIG_DM_MMC
 #ifdef CONFIG_MMC_DAVINCI
 static struct davinci_mmc mmc_sd0 = {
        .reg_base = (struct davinci_mmc_regs *)DAVINCI_MMC_SD0_BASE,
@@ -220,6 +221,7 @@ int board_mmc_init(bd_t *bis)
        return davinci_mmc_init(bis, &mmc_sd0);
 }
 #endif
+#endif
 
 static const struct pinmux_config gpio_pins[] = {
 #ifdef CONFIG_USE_NOR
index e81efe8227b79e4b0e0058bb3bcd09815ebfcafc..c30f396e659ab7db0c00f678d9634630f191f7ca 100644 (file)
@@ -43,6 +43,7 @@ CONFIG_DM_GPIO=y
 CONFIG_DA8XX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DAVINCI=y
+CONFIG_DM_MMC=y
 CONFIG_MTD_DEVICE=y
 CONFIG_MTD_PARTITIONS=y
 CONFIG_DM_SPI_FLASH=y