From 6846779e7ce7c3ee8601b0914c8995d52c79a3ca Mon Sep 17 00:00:00 2001 From: Tony Lin Date: Wed, 31 Aug 2011 13:28:37 +0800 Subject: ENGR00155612-2 [mx6q]dynamically sd pad setting change call platform callback funtion, if exists, when clock frequency is changed. Signed-off-by: Tony Lin --- drivers/mmc/host/sdhci-esdhc.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- cgit v1.2.3