summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorTony Lin <tony.lin@freescale.com>2011-08-31 13:28:37 +0800
committerJason Liu <r64343@freescale.com>2012-01-09 20:23:31 +0800
commit1e18c4f65a765036514dc9b8af4c5d41400e4561 (patch)
tree43d2968b28f9eb7a1563d562ed0804848c7de8b2 /drivers/mmc
parentbf6d230a6b12544170f2bb26f016f6ebaff43ec0 (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>
Diffstat (limited to 'drivers/mmc')
-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 c4e8fad4d999..c78ce0c72ad8 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;
}