]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: sdhci: Add a delay quirk during completion of sdhci_send_cmd
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Fri, 25 Jan 2013 17:17:25 +0000 (18:17 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 4 Feb 2013 10:39:32 +0000 (11:39 +0100)
This patch provides to added delay quirk between the every sdhci_send_cmd()
execution.

Without this delay, MMC initialization on zynq board fails with
following error messages.

Controller never released inhibit bit(s).

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/mmc/zynq_sdhci.c

index 761a8596e212f287f82afe6b261dc8a271865f29..27e9d5ef7c1fed16dae6b9cc96896d90d815fc29 100644 (file)
@@ -30,7 +30,7 @@ int zynq_sdhci_init(u32 regbase, u32 max_clk, u32 min_clk)
 
        host->name = "zynq_sdhci";
        host->ioaddr = (void *) regbase;
-       host->quirks = SDHCI_QUIRK_NO_CD;
+       host->quirks = SDHCI_QUIRK_NO_CD | SDHCI_QUIRK_WAIT_SEND_CMD;
        host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
 
        add_sdhci(host, max_clk, min_clk);