[U-Boot] [U-Boot,v5] mmc: atmel: Add atmel sdhci support

Andreas Bießmann andreas.devel at googlemail.com
Tue Nov 3 15:13:45 CET 2015


Dear Wenyou Yang,

Wenyou Yang <wenyou.yang at atmel.com> writes:
>The SDHCI is introduced by sama5d2, named as Secure Digital Multimedia
>Card Controller(SDMMC). It supports the embedded MultiMedia Card (e.MMC)
>Specification V4.41, the SD Memory Card Specification V3.0, and the SDIO
>V3.0 specification. It is compliant with the SD Host Controller Standard
>V3.0 specification.
>
>Signed-off-by: Wenyou Yang <wenyou.yang at atmel.com>
>Reviewed-by: Andreas Bießmann <andreas.devel at googlemail.com>
>---
>
>Changes in v5:
> 1./ fix erroreous invocation of calloc().
>
>Changes in v4:
> 1./ remove unneeded initial value NULL of host.
> 2./ use calloc() to zero-initialize the buffer, instead of malloc().
> 3./ remove unnecessary convert type before host->ioaddr.
>
>Changes in v3:
> 1./ return -ENODEV instead of -1, when failing to get proper clock.
> 2./ add free host instance when failing to get proper clock.
>
>Changes in v2:
> - According to Bo Shen's comments,
> 1./ change the macro ATMEL_SDHC_MIN_FRQ -> ATMEL_SDHC_MIN_FREQ.
> 2./ change the return value to -ENOMEM and print log for malloc failure.
> 3./ add the failed return and log for getting improper clock.
> 4./ add more commit log.
>
> arch/arm/mach-at91/include/mach/atmel_sdhci.h |   13 ++++++++
> drivers/mmc/Makefile                          |    1 +
> drivers/mmc/atmel_sdhci.c                     |   40 +++++++++++++++++++++++++
> 3 files changed, 54 insertions(+)
> create mode 100644 arch/arm/mach-at91/include/mach/atmel_sdhci.h
> create mode 100644 drivers/mmc/atmel_sdhci.c

applied to u-boot-atmel/master, thanks!

Best regards,
Andreas Bießmann


More information about the U-Boot mailing list