[U-Boot] [PATCH 6/9] mx23_olinuxino: Skip MMC Card detection
Otavio Salvador
otavio at ossystems.com.br
Tue Jan 22 02:47:26 CET 2013
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
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
--
1.8.1
More information about the U-Boot
mailing list