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 <jaganna@xilinx.com>
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;
}