From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Tue, 3 Nov 2015 15:13:45 +0100 Subject: [U-Boot] [U-Boot,v5] mmc: atmel: Add atmel sdhci support In-Reply-To: <1446433029-10134-1-git-send-email-wenyou.yang@atmel.com> (from Wenyou Yang on Mon, 2 Nov 2015 10:57:09 +0800) References: <1446433029-10134-1-git-send-email-wenyou.yang@atmel.com> Message-ID: <1446560025-1267-1-git-send-email-andreas.devel@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wenyou Yang, Wenyou Yang 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 >Reviewed-by: Andreas Bie?mann >--- > >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