[U-Boot] [PATCH v4 2/4] mmc: Implement card detection.

Jason Liu liu.h.jason at gmail.com
Wed Jan 4 06:23:42 CET 2012


2012/1/2 Thierry Reding <thierry.reding at avionic-design.de>:
> 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 at avionic-design.de>
> ---
>  drivers/mmc/arm_pl180_mmci.c |    1 +
>  drivers/mmc/bfin_sdh.c       |    1 +
>  drivers/mmc/davinci_mmc.c    |    1 +
>  drivers/mmc/ftsdc010_esdhc.c |    1 +
>  drivers/mmc/gen_atmel_mci.c  |    1 +
>  drivers/mmc/mmc.c            |   18 ++++++++++++++++++
>  drivers/mmc/mmc_spi.c        |    1 +
>  drivers/mmc/mxcmmc.c         |    1 +
>  drivers/mmc/mxsmmc.c         |    1 +
>  drivers/mmc/omap_hsmmc.c     |    1 +
>  drivers/mmc/pxa_mmc_gen.c    |    1 +
>  drivers/mmc/s5p_mmc.c        |    1 +
>  drivers/mmc/sdhci.c          |    1 +
>  drivers/mmc/sh_mmcif.c       |    1 +
>  include/mmc.h                |    2 ++
>  15 files changed, 33 insertions(+), 0 deletions(-)

Tested ok on i.mx51evk board,

Tested-by: Jason Liu <jason.hui at linaro.org>

>
[...]
> --
> 1.7.8.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list