aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Lin <tony.lin@freescale.com>2011-08-31 13:28:37 +0800
committerTony Lin <tony.lin@freescale.com>2011-09-01 15:43:07 +0800
commit6846779e7ce7c3ee8601b0914c8995d52c79a3ca (patch)
tree5cdac0f410df3286f09cb87ef920117edc65d296
parentc772b128f3aff55d23989207cd21738cd383fac8 (diff)
ENGR00155612-2 [mx6q]dynamically sd pad setting change
call platform callback funtion, if exists, when clock frequency is changed. Signed-off-by: Tony Lin <tony.lin@freescale.com>
-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;
}