Commit 3a3eaa817e5748f2e7a944261a1872994ef0299e
Committed by
Anatolij Gustschin
1 parent
29771c2c39
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
dm: arm: imx: cx9020: remove unused mmc functions
These mmc functions were not used anymore since DM_MMC was introduced. Acked-by: Patrick Bruenn <p.bruenn@beckhoff.com> Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
Showing 1 changed file with 0 additions and 55 deletions Side-by-side Diff
board/beckhoff/mx53cx9020/mx53cx9020.c
... | ... | @@ -9,7 +9,6 @@ |
9 | 9 | |
10 | 10 | #include <common.h> |
11 | 11 | #include <dm.h> |
12 | -#include <asm/io.h> | |
13 | 12 | #include <asm/arch/imx-regs.h> |
14 | 13 | #include <asm/arch/sys_proto.h> |
15 | 14 | #include <asm/arch/crm_regs.h> |
16 | 15 | |
... | ... | @@ -20,11 +19,8 @@ |
20 | 19 | #include <ACEX1K.h> |
21 | 20 | #include <netdev.h> |
22 | 21 | #include <i2c.h> |
23 | -#include <mmc.h> | |
24 | -#include <fsl_esdhc.h> | |
25 | 22 | #include <asm/gpio.h> |
26 | 23 | #include <input.h> |
27 | -#include <fs.h> | |
28 | 24 | #include <dm/platform_data/serial_mxc.h> |
29 | 25 | |
30 | 26 | enum LED_GPIOS { |
... | ... | @@ -148,57 +144,6 @@ |
148 | 144 | } |
149 | 145 | #endif |
150 | 146 | |
151 | -#ifdef CONFIG_FSL_ESDHC | |
152 | -struct fsl_esdhc_cfg esdhc_cfg[2] = { | |
153 | - {MMC_SDHC1_BASE_ADDR}, | |
154 | - {MMC_SDHC2_BASE_ADDR}, | |
155 | -}; | |
156 | - | |
157 | -int board_mmc_getcd(struct mmc *mmc) | |
158 | -{ | |
159 | - struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; | |
160 | - int ret; | |
161 | - | |
162 | - gpio_request(GPIO_SD1_CD, "GPIO_SD1_CD"); | |
163 | - gpio_request(GPIO_SD2_CD, "GPIO_SD2_CD"); | |
164 | - gpio_direction_input(GPIO_SD1_CD); | |
165 | - gpio_direction_input(GPIO_SD2_CD); | |
166 | - | |
167 | - if (cfg->esdhc_base == MMC_SDHC1_BASE_ADDR) | |
168 | - ret = !gpio_get_value(GPIO_SD1_CD); | |
169 | - else | |
170 | - ret = !gpio_get_value(GPIO_SD2_CD); | |
171 | - | |
172 | - return ret; | |
173 | -} | |
174 | - | |
175 | -int board_mmc_init(bd_t *bis) | |
176 | -{ | |
177 | - u32 index; | |
178 | - int ret; | |
179 | - | |
180 | - esdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK); | |
181 | - esdhc_cfg[1].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK); | |
182 | - | |
183 | - for (index = 0; index < CONFIG_SYS_FSL_ESDHC_NUM; index++) { | |
184 | - switch (index) { | |
185 | - case 0: | |
186 | - break; | |
187 | - case 1: | |
188 | - break; | |
189 | - default: | |
190 | - printf("Warning: you configured more ESDHC controller(%d) as supported by the board(2)\n", | |
191 | - CONFIG_SYS_FSL_ESDHC_NUM); | |
192 | - return -EINVAL; | |
193 | - } | |
194 | - ret = fsl_esdhc_initialize(bis, &esdhc_cfg[index]); | |
195 | - if (ret) | |
196 | - return ret; | |
197 | - } | |
198 | - | |
199 | - return 0; | |
200 | -} | |
201 | -#endif | |
202 | 147 | |
203 | 148 | static int power_init(void) |
204 | 149 | { |