]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: davinci: omapl138_lcdk: Enable DM_MMC
authorAdam Ford <aford173@gmail.com>
Thu, 9 Aug 2018 11:15:14 +0000 (06:15 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 12 Sep 2018 01:41:48 +0000 (21:41 -0400)
With DM_MMC now available, this patch enables DM_MMC for the
omapl138_lcdk in U-Boot and keeps the older style for SPL.

Signed-off-by: Peter Howard <phoward@gme.net.au>
Signed-off-by: Adam Ford <aford173@gmail.com>
board/davinci/da8xxevm/omapl138_lcdk.c
configs/omapl138_lcdk_defconfig

index 15ffc3bfac050d84ade9a13da4cf3d467d1fc528..2c2f885d43e4536a0280833f37c5d047b11490a6 100644 (file)
@@ -353,6 +353,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,
@@ -369,3 +370,4 @@ int board_mmc_init(bd_t *bis)
        return davinci_mmc_init(bis, &mmc_sd0);
 }
 #endif
+#endif
index 96311afd1d774a734bba655a2d68b6990669abb3..e3a06c8f17e52fce44385a1db91109ae9e3c5e69 100644 (file)
@@ -37,6 +37,7 @@ CONFIG_DM=y
 CONFIG_DM_I2C=y
 CONFIG_DM_I2C_COMPAT=y
 CONFIG_SYS_I2C_DAVINCI=y
+CONFIG_DM_MMC=y
 CONFIG_NAND=y
 CONFIG_NAND_DAVINCI=y
 CONFIG_SYS_NAND_BUSWIDTH_16BIT=y