summaryrefslogtreecommitdiff
path: root/drivers/mmc/core/core.c
diff options
context:
space:
mode:
authorRyan QIAN <b32804@freescale.com>2012-02-23 08:24:53 +0800
committerRyan QIAN <b32804@freescale.com>2012-02-23 14:30:02 +0800
commit697acccd323c38f3d48923528ec0bfda04d8e5a7 (patch)
treea8f8a1097d31593688fcacdf7d6a7f3e7e776778 /drivers/mmc/core/core.c
parent2811e96332f49ea9c82f5ed7e2f58e063c5f04ba (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.c7
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);