diff options
author | Tony Lin <tony.lin@freescale.com> | 2011-08-31 13:28:37 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-01-09 20:23:31 +0800 |
commit | 1e18c4f65a765036514dc9b8af4c5d41400e4561 (patch) | |
tree | 43d2968b28f9eb7a1563d562ed0804848c7de8b2 /drivers/mmc | |
parent | bf6d230a6b12544170f2bb26f016f6ebaff43ec0 (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.h | 8 |
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; } |