summaryrefslogtreecommitdiff
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorMohan T <mohant@nvidia.com>2014-04-17 09:59:28 +0530
committerSeema Khowala <seemaj@nvidia.com>2014-04-23 14:07:23 -0700
commit7de8b76f06c0e70615f99104ad2f2430219060c4 (patch)
treefda5872967c3af2081d24fa1bc79ad751eb88d2e /drivers/mmc/host
parent6250781cb78f17139f8f078f2d9dbfae5e77f3a9 (diff)
mmc: tegra: Add drive strength type selection from platform data
Need different drive type modes for different board’s. So implement drive strength selection call back and provide the drive type mode from platform here. Bug 1458921 Change-Id: I2e21eadfaeb592ba92c424bfa11f9a7dd64cdb51 Signed-off-by: Mohan T <mohant@nvidia.com> Reviewed-on: http://git-master/r/395843 GVS: Gerrit_Virtual_Submit Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/sdhci-tegra.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index 979e502dbd38..40a47bf1b88a 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -3798,6 +3798,16 @@ void tegra_sdhci_ios_config_exit(struct sdhci_host *sdhci, struct mmc_ios *ios)
tegra_sdhci_set_clock(sdhci, 0);
}
+static int tegra_sdhci_get_drive_strength(struct sdhci_host *sdhci,
+ unsigned int max_dtr, int host_drv, int card_drv)
+{
+ struct sdhci_pltfm_host *pltfm_host = sdhci_priv(sdhci);
+ struct sdhci_tegra *tegra_host = pltfm_host->priv;
+ const struct tegra_sdhci_platform_data *plat = tegra_host->plat;
+
+ return plat->default_drv_type;
+}
+
static const struct sdhci_ops tegra_sdhci_ops = {
.get_ro = tegra_sdhci_get_ro,
.get_cd = tegra_sdhci_get_cd,
@@ -3823,6 +3833,7 @@ static const struct sdhci_ops tegra_sdhci_ops = {
.dfs_gov_init = sdhci_tegra_freq_gov_init,
.dfs_gov_get_target_freq = sdhci_tegra_get_target_freq,
#endif
+ .get_drive_strength = tegra_sdhci_get_drive_strength,
};
static struct sdhci_pltfm_data sdhci_tegra11_pdata = {