sdhci_writel(host, host->ier, SDHCI_SIGNAL_ENABLE);
}
+static unsigned int esdhc_get_max_timeout_counter(struct sdhci_host *host)
+{
+ return 1 << 28;
+}
+
static struct sdhci_ops sdhci_esdhc_ops = {
.read_l = esdhc_readl_le,
.read_w = esdhc_readw_le,
*/
if (esdhc_is_usdhc(imx_data)) {
writel(0x08100810, host->ioaddr + ESDHC_WTMK_LVL);
- host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN;
+ host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
+ SDHCI_QUIRK2_NOSTD_TIMEOUT_COUNTER;
host->mmc->caps |= MMC_CAP_1_8V_DDR;
/*
* TO1.1, it's harmless for MX6SL
*/
writel(readl(host->ioaddr + 0x6c) | BIT(7), host->ioaddr + 0x6c);
+ sdhci_esdhc_ops.get_max_timeout_counter =
+ esdhc_get_max_timeout_counter;
}
if (imx_data->socdata->flags & ESDHC_FLAG_MAN_TUNING)