diff options
author | Pavan Kunapuli <pkunapuli@nvidia.com> | 2014-03-13 18:04:43 +0530 |
---|---|---|
committer | Pavan Kunapuli <pkunapuli@nvidia.com> | 2014-03-17 02:55:44 -0700 |
commit | 9228aad1b489d2a67d53ad3122a0bae5b7cd5aa2 (patch) | |
tree | 44d5d891c0ce455afc4fb368372feb3d49164a64 /drivers/mmc | |
parent | 6a4633891f322ca7d149fccb17d43038e83dd43d (diff) |
mmc: tegra: Set tuned tap value for SDR104/SDR50
In case of SDR104/SDR50 modes, set tuned tap value if tuning
is already done.
Bug 1469287
Change-Id: I94f564f2c3490e1ffcc6c2acc2159d7d71d1a189
Reviewed-on: http://git-master/r/381505
(cherry picked from commit f4ef9870d1dd610e3ec69cae4ca6cef1de40e98e)
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/382321
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 650a6d8b3576..d2fbf4d839da 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -1009,7 +1009,10 @@ static int tegra_sdhci_set_uhs_signaling(struct sdhci_host *host, } } /* Set the best tap value based on timing */ - if (uhs == MMC_TIMING_MMC_HS200) { + if (((uhs == MMC_TIMING_MMC_HS200) || + (uhs == MMC_TIMING_UHS_SDR104) || + (uhs == MMC_TIMING_UHS_SDR50)) && + (tegra_host->tuning_status == TUNING_STATUS_DONE)) { tuning_data = sdhci_tegra_get_tuning_data(host, host->mmc->ios.clock); best_tap_value = (tegra_host->tap_cmd == |