Skip to content
Snippets Groups Projects
Commit b5750e89 authored by minute's avatar minute
Browse files

reform2: sd/mmc: force enable all controllers

parent 7e83e972
No related branches found
No related tags found
No related merge requests found
......@@ -64,9 +64,8 @@ int board_mmc_getcd(struct mmc *mmc)
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
int gp_cd = cfg->gp_cd;
if (!gp_cd)
return 1; /* eMMC always present */
return !gpio_get_value(gp_cd);
// force SD/MMC presence
return 1;
}
#if defined(CONFIG_MX51)
......@@ -86,7 +85,8 @@ int board_mmc_init(bd_t *bis)
int ret;
u32 index = 0;
for (index = 0; index < CNT; index++) {
// init both controllers
for (index = 0; index < 2; index++) {
struct fsl_esdhc_cfg *cfg = &board_usdhc_cfg[index];
if (cfg->esdhc_base == BASE1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment