aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r--drivers/mmc/host/sdhci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 6779b4ecab18..62041c7e9246 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1766,7 +1766,10 @@ int sdhci_add_host(struct sdhci_host *host)
1766 * Set host parameters. 1766 * Set host parameters.
1767 */ 1767 */
1768 mmc->ops = &sdhci_ops; 1768 mmc->ops = &sdhci_ops;
1769 mmc->f_min = host->max_clk / 256; 1769 if (host->ops->get_min_clock)
1770 mmc->f_min = host->ops->get_min_clock(host);
1771 else
1772 mmc->f_min = host->max_clk / 256;
1770 mmc->f_max = host->max_clk; 1773 mmc->f_max = host->max_clk;
1771 mmc->caps = MMC_CAP_SDIO_IRQ; 1774 mmc->caps = MMC_CAP_SDIO_IRQ;
1772 1775