aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/host/sdhci-esdhc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc.h b/drivers/mmc/host/sdhci-esdhc.h
index c4e8fad4d99..c78ce0c72ad 100644
--- a/drivers/mmc/host/sdhci-esdhc.h
+++ b/drivers/mmc/host/sdhci-esdhc.h
@@ -88,6 +88,14 @@ static inline void esdhc_set_clock(struct sdhci_host *host, unsigned int clock)
| (pre_div << ESDHC_PREDIV_SHIFT));
sdhci_writel(host, temp, ESDHC_SYSTEM_CONTROL);
mdelay(100);
+
+ /* if there's board callback function
+ * for pad setting change, that means
+ * board needs to reconfig its pad for
+ * corresponding sd bus frequency
+ */
+ if (boarddata->platform_pad_change)
+ boarddata->platform_pad_change(clock);
out:
host->clock = clock;
}