From b5750e89af9f21ffea43cd6783bf0ec9b6e8fe8c Mon Sep 17 00:00:00 2001 From: mntmn <lukas@mntmn.com> Date: Thu, 21 May 2020 16:25:57 +0200 Subject: [PATCH] reform2: sd/mmc: force enable all controllers --- board/boundary/common/bd_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/boundary/common/bd_common.c b/board/boundary/common/bd_common.c index aa8fba0d891..ab9d95f7a14 100644 --- a/board/boundary/common/bd_common.c +++ b/board/boundary/common/bd_common.c @@ -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) { -- GitLab