diff options
author | Sumeet Gupta <sumeetg@nvidia.com> | 2013-01-02 12:49:31 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:57:00 -0700 |
commit | ccd3804e7a921d6bb2268fa71500f795787b5ad2 (patch) | |
tree | f30ba863f20c407fd44f9d7af67b9a25c25e5ce6 /drivers | |
parent | 322455d5a102bab522995821c25b08a84faa8724 (diff) |
sdhci: tegra: Add option to use 3.2V input voltage.
Bug 1187691
Change-Id: I01dbd648e3fa8264b5e8706ccef49ac88b8bb106
Signed-off-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-on: http://git-master/r/187928
(cherry picked from commit a0dbcca0706d94c00ca472e029b94003d2db98ac)
Reviewed-on: http://git-master/r/194583
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index d09de329c16e..723f17a6d60d 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -82,6 +82,7 @@ #define SDHOST_HIGH_VOLT_2V8 2800000 #define SDHOST_LOW_VOLT_MIN 1800000 #define SDHOST_LOW_VOLT_MAX 1800000 +#define SDHOST_HIGH_VOLT_3V2 3200000 #define TEGRA_SDHOST_MIN_FREQ 50000000 #define TEGRA2_SDHOST_STD_FREQ 50000000 @@ -1370,6 +1371,8 @@ static struct tegra_sdhci_platform_data *sdhci_tegra_dt_parse_pdata( plat->mmc_data.ocr_mask = MMC_OCR_1V8_MASK; else if (val == 1) plat->mmc_data.ocr_mask = MMC_OCR_2V8_MASK; + else if (val == 2) + plat->mmc_data.ocr_mask = MMC_OCR_3V2_MASK; } return plat; } @@ -1503,6 +1506,9 @@ static int sdhci_tegra_probe(struct platform_device *pdev) } else if (plat->mmc_data.ocr_mask & MMC_OCR_2V8_MASK) { tegra_host->vddio_min_uv = SDHOST_HIGH_VOLT_2V8; tegra_host->vddio_max_uv = SDHOST_HIGH_VOLT_MAX; + } else if (plat->mmc_data.ocr_mask & MMC_OCR_3V2_MASK) { + tegra_host->vddio_min_uv = SDHOST_HIGH_VOLT_3V2; + tegra_host->vddio_max_uv = SDHOST_HIGH_VOLT_MAX; } else { /* * Set the minV and maxV to default |