diff options
author | Vincent Yang <vincent.yang.fujitsu@gmail.com> | 2015-01-20 16:05:16 +0800 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-20 09:29:16 +0100 |
commit | 67d0d04a762db4bd610fd628ad683b5d7dc905e7 (patch) | |
tree | 74a3eed2bb5f6e5643ee445b28e8a871aa3f22f1 /drivers | |
parent | 9d967a61b4fc77b12f4b038a9345b5cda5bb2a7a (diff) | |
download | linux-stable-67d0d04a762db4bd610fd628ad683b5d7dc905e7.tar.gz linux-stable-67d0d04a762db4bd610fd628ad683b5d7dc905e7.tar.bz2 linux-stable-67d0d04a762db4bd610fd628ad683b5d7dc905e7.zip |
mmc: sdhci: add a quirk for tuning work around
This patch defines a quirk for tuning work
around for some sdhci host controller. It sets
both SDHCI_CTRL_EXEC_TUNING and SDHCI_CTRL_TUNED_CLK
for tuning.
It is a preparation and will be used by Fujitsu
SDHCI controller f_sdh30 driver.
Signed-off-by: Vincent Yang <Vincent.Yang@tw.fujitsu.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 3e4fe967d7e5..a3ecd20e5510 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1961,6 +1961,8 @@ static int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode) ctrl = sdhci_readw(host, SDHCI_HOST_CONTROL2); ctrl |= SDHCI_CTRL_EXEC_TUNING; + if (host->quirks2 & SDHCI_QUIRK2_TUNING_WORK_AROUND) + ctrl |= SDHCI_CTRL_TUNED_CLK; sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2); /* |