summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/bfin_sdh.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2012-01-02 01:15:37 +0000
committerAndy Fleming <afleming@freescale.com>2012-01-08 21:28:27 -0600
commit48972d907a28de17c2a5108a3ee3d5f3eb434376 (patch)
treebfaf84d0cd7a3ed6e027e52cdd5cbf673ae788e7 /drivers/mmc/bfin_sdh.c
parent314284b1567f1ce29c19060641e7f213146f7ab8 (diff)
downloadu-boot-48972d907a28de17c2a5108a3ee3d5f3eb434376.tar.gz
u-boot-48972d907a28de17c2a5108a3ee3d5f3eb434376.tar.xz
u-boot-48972d907a28de17c2a5108a3ee3d5f3eb434376.zip
mmc: Implement card detection.
Check for card detect each time an MMC/SD device is initialized. If card detection is not implemented, this code behaves as before and continues assuming a card is present. If no card is detected, has_init is reset for the MMC/SD device (to force initialization next time) and an error is returned. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Tested-by: Jason Liu <jason.hui@linaro.org>
Diffstat (limited to 'drivers/mmc/bfin_sdh.c')
-rw-r--r--drivers/mmc/bfin_sdh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/bfin_sdh.c b/drivers/mmc/bfin_sdh.c
index bc9057fa9a..08fc5c1d3e 100644
--- a/drivers/mmc/bfin_sdh.c
+++ b/drivers/mmc/bfin_sdh.c
@@ -250,6 +250,7 @@ int bfin_mmc_init(bd_t *bis)
mmc->send_cmd = bfin_sdh_request;
mmc->set_ios = bfin_sdh_set_ios;
mmc->init = bfin_sdh_init;
+ mmc->getcd = NULL;
mmc->host_caps = MMC_MODE_4BIT;
mmc->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;