From patchwork Tue Jan 22 01:47:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,6/9] mx23_olinuxino: Skip MMC Card detection Date: Mon, 21 Jan 2013 15:47:26 -0000 From: Otavio Salvador X-Patchwork-Id: 214309 Message-Id: <1358819250-31625-7-git-send-email-otavio@ossystems.com.br> To: u-boot@lists.denx.de Cc: marex@denx.de, fabio.estevam@freescale.com, Otavio Salvador Signed-off-by: Otavio Salvador --- drivers/mmc/mxsmmc.c | 2 ++ include/configs/mx23_olinuxino.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c index 4b178be..618659e 100644 --- a/drivers/mmc/mxsmmc.c +++ b/drivers/mmc/mxsmmc.c @@ -165,11 +165,13 @@ mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) return TIMEOUT; } +#ifndef CONFIG_MMC_SKIP_CARD_DETECT /* See if card is present */ if (readl(&ssp_regs->hw_ssp_status) & SSP_STATUS_CARD_DETECT) { printf("MMC%d: No card detected!\n", mmc->block_dev.dev); return NO_CARD_ERR; } +#endif /* Start building CTRL0 contents */ ctrl0 = priv->buswidth; diff --git a/include/configs/mx23_olinuxino.h b/include/configs/mx23_olinuxino.h index bc63481..a62e3a2 100644 --- a/include/configs/mx23_olinuxino.h +++ b/include/configs/mx23_olinuxino.h @@ -116,6 +116,7 @@ */ #ifdef CONFIG_CMD_MMC #define CONFIG_MMC +#define CONFIG_MMC_SKIP_CARD_DETECT #define CONFIG_BOUNCE_BUFFER #define CONFIG_GENERIC_MMC #define CONFIG_MXS_MMC