Commit 19e874c6d75b58f7707b0b80a7fcbf5dbdf750bc
Committed by
Stefano Babic
1 parent
1b20e3a281
Exists in
smarc_8mq_lf_v2020.04
and in
10 other branches
DM: mmc: Switch display5 board to use DM_MMC and BLK (USDHC)
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>
Showing 4 changed files with 1 additions and 29 deletions Side-by-side Diff
arch/arm/mach-imx/mx6/Kconfig
board/liebherr/display5/common.c
... | ... | @@ -109,13 +109,7 @@ |
109 | 109 | SETUP_IOMUX_PADS(usdhc4_pads); |
110 | 110 | } |
111 | 111 | |
112 | -void displ5_set_iomux_usdhc(void) | |
113 | -{ | |
114 | - SETUP_IOMUX_PADS(usdhc4_pads); | |
115 | -} | |
116 | - | |
117 | 112 | #else |
118 | 113 | void displ5_set_iomux_usdhc_spl(void) {} |
119 | -void displ5_set_iomux_usdhc(void) {} | |
120 | 114 | #endif |
board/liebherr/display5/common.h
board/liebherr/display5/display5.c
... | ... | @@ -20,8 +20,6 @@ |
20 | 20 | #include <asm/mach-imx/iomux-v3.h> |
21 | 21 | #include <asm/mach-imx/boot_mode.h> |
22 | 22 | #include <asm/mach-imx/spi.h> |
23 | -#include <mmc.h> | |
24 | -#include <fsl_esdhc_imx.h> | |
25 | 23 | #include <miiphy.h> |
26 | 24 | #include <netdev.h> |
27 | 25 | #include <i2c.h> |
... | ... | @@ -141,26 +139,6 @@ |
141 | 139 | /* Emergency recovery pin */ |
142 | 140 | MX6_PAD_EIM_D29__GPIO3_IO29 | MUX_PAD_CTRL(NO_PAD_CTRL), |
143 | 141 | }; |
144 | - | |
145 | -#ifdef CONFIG_FSL_ESDHC_IMX | |
146 | -struct fsl_esdhc_cfg usdhc_cfg[1] = { | |
147 | - { USDHC4_BASE_ADDR, 0, 8, }, | |
148 | -}; | |
149 | - | |
150 | -int board_mmc_getcd(struct mmc *mmc) | |
151 | -{ | |
152 | - return 1; | |
153 | -} | |
154 | - | |
155 | -int board_mmc_init(bd_t *bis) | |
156 | -{ | |
157 | - displ5_set_iomux_usdhc(); | |
158 | - | |
159 | - usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC4_CLK); | |
160 | - | |
161 | - return fsl_esdhc_initialize(bis, &usdhc_cfg[0]); | |
162 | -} | |
163 | -#endif /* CONFIG_FSL_ESDHC_IMX */ | |
164 | 142 | |
165 | 143 | static void displ5_setup_ecspi(void) |
166 | 144 | { |