From d2582f3bf2e08ac97c002642906d8af5de317645 Mon Sep 17 00:00:00 2001 From: Jagannadha Sutradharudu Teki Date: Thu, 21 Feb 2013 21:17:56 +0530 Subject: [PATCH] zynq: sdhci: Enable MMC host High Capacity support This patch enables MMC high capacity support to host, to inform the card that the host is capable to handle the high capacity cards. This is needs for the cards(mmc/emmc) which has > 2GB capacity. Bug log(for > 2GB cards without enabling MMC_MODE_HC): zynq-uboot> mmcinfo [snip] [snip] CMD_SEND:1 ARG 0x00300000 MMC_RSP_R3,4 0x00FF8080 CMD_SEND:1 ARG 0x00300000 MMC_RSP_R3,4 0x00FF8080 CMD_SEND:1 ARG 0x00300000 MMC_RSP_R3,4 0x00FF8080 CMD_SEND:1 ARG 0x00300000 MMC_RSP_R3,4 0x00FF8080 Card did not respond to voltage select! Device: zynq_sdhci Manufacturer ID: 0 OEM: 0 Name: Tran Speed: 0 Rd Block Len: 0 MMC version 0.0 High Capacity: No Capacity: 0 Bytes Bus Width: 1-bit Signed-off-by: Jagannadha Sutradharudu Teki --- drivers/mmc/zynq_sdhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 27e9d5ef7c1..340c09865cd 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -33,6 +33,8 @@ int zynq_sdhci_init(u32 regbase, u32 max_clk, u32 min_clk) host->quirks = SDHCI_QUIRK_NO_CD | SDHCI_QUIRK_WAIT_SEND_CMD; host->version = sdhci_readw(host, SDHCI_HOST_VERSION); + host->host_caps = MMC_MODE_HC; + add_sdhci(host, max_clk, min_clk); return 0; } -- 2.47.3