diff options
author | Ryan QIAN <b32804@freescale.com> | 2012-02-23 08:24:53 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-07-20 13:23:17 +0800 |
commit | 9514bd667f8d6b341727f37873c04b1eef6f04d7 (patch) | |
tree | 596830b5b9fdfff3456465a1dee15d996dc84f2e /drivers/mmc/core/core.c | |
parent | 0102db0045da50caaaf1e9ce99b6e2d77bc0c278 (diff) |
ENGR00175221-02 [MX6] MMCSD: clear EXE_TUNE bit after tuning finishes.
- add hook for post tuning in common code
- add hook for post tuning for platform code to deal with clean up stuff on
finishing tuning.
Signed-off-by: Ryan QIAN <b32804@freescale.com>
Diffstat (limited to 'drivers/mmc/core/core.c')
-rw-r--r-- | drivers/mmc/core/core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index fb541cc8a92c..c3f7117ea266 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -662,6 +662,13 @@ void mmc_set_clock(struct mmc_host *host, unsigned int hz) mmc_host_clk_release(host); } +void mmc_finish_tuning(struct mmc_host *host) +{ + host->ios.finish_tuning_flag = 1; + mmc_set_ios(host); + host->ios.finish_tuning_flag = 0; +} + void mmc_set_tuning(struct mmc_host *host, unsigned int tuning) { WARN_ON(tuning < host->tuning_min); |