]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
DM: mmc: Switch display5 board to use DM_MMC and BLK (USDHC)
authorLukasz Majewski <lukma@denx.de>
Tue, 3 Sep 2019 14:38:41 +0000 (16:38 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:35:59 +0000 (16:35 +0200)
After this commit the display5 device would use eMMC driver supporting
driver model (DM_MMC and BLK).

Signed-off-by: Lukasz Majewski <lukma@denx.de>
arch/arm/mach-imx/mx6/Kconfig
board/liebherr/display5/common.c
board/liebherr/display5/common.h
board/liebherr/display5/display5.c

index ba2ab51de37434e3086d79ec3626bfdcf27c5907..7ccebc37ca6425f612d44af413c5908330c8d777 100644 (file)
@@ -198,6 +198,7 @@ config TARGET_DISPLAY5
        bool "LWN DISPLAY5 board"
        select DM
        select DM_I2C
+       select DM_MMC
        select DM_GPIO
        select DM_SERIAL
        select SUPPORT_SPL
index 8390d9a0f31cb425d9f9c45fff658b4432b603d4..754c442427f82e6c16882be91425e181865cb2ec 100644 (file)
@@ -109,12 +109,6 @@ void displ5_set_iomux_usdhc_spl(void)
        SETUP_IOMUX_PADS(usdhc4_pads);
 }
 
-void displ5_set_iomux_usdhc(void)
-{
-       SETUP_IOMUX_PADS(usdhc4_pads);
-}
-
 #else
 void displ5_set_iomux_usdhc_spl(void) {}
-void displ5_set_iomux_usdhc(void) {}
 #endif
index 78c64b02e280a8d7e2c6707b7a67a99ee72e7dc4..231cefc960099e50714db2736a305a46b1732899 100644 (file)
@@ -36,7 +36,6 @@ void displ5_set_iomux_uart(void);
 void displ5_set_iomux_ecspi_spl(void);
 void displ5_set_iomux_ecspi(void);
 void displ5_set_iomux_usdhc_spl(void);
-void displ5_set_iomux_usdhc(void);
 void displ5_set_iomux_misc_spl(void);
 
 #endif /* __DISPL5_COMMON_H_ */
index 5ebc8529e9c74f33a2ad56684efc77741768f788..0cc77dac0fa10e8192f19119caf234beb9801805 100644 (file)
@@ -20,8 +20,6 @@
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/mach-imx/spi.h>
-#include <mmc.h>
-#include <fsl_esdhc_imx.h>
 #include <miiphy.h>
 #include <netdev.h>
 #include <i2c.h>
@@ -142,26 +140,6 @@ iomux_v3_cfg_t const misc_pads[] = {
        MX6_PAD_EIM_D29__GPIO3_IO29 | MUX_PAD_CTRL(NO_PAD_CTRL),
 };
 
-#ifdef CONFIG_FSL_ESDHC_IMX
-struct fsl_esdhc_cfg usdhc_cfg[1] = {
-       { USDHC4_BASE_ADDR, 0, 8, },
-};
-
-int board_mmc_getcd(struct mmc *mmc)
-{
-       return 1;
-}
-
-int board_mmc_init(bd_t *bis)
-{
-       displ5_set_iomux_usdhc();
-
-       usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC4_CLK);
-
-       return fsl_esdhc_initialize(bis, &usdhc_cfg[0]);
-}
-#endif /* CONFIG_FSL_ESDHC_IMX */
-
 static void displ5_setup_ecspi(void)
 {
        int ret;