summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorPavan Kunapuli <pkunapuli@nvidia.com>2011-03-09 14:42:25 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-04-26 15:53:23 -0700
commit892ad326688fbb29612358dd7dffc5835b969f4c (patch)
treebd1dedafc717b60d1a9fd47b9870bf6e9966cfb1 /drivers/mmc
parentb244795f227344fb586ff4917335320b7468f056 (diff)
sdhci:tegra:Enable 8bit support if platform supports it.
Set SDHCI_QUIRK_8_BIT_DATA if the platform supports 8-bit data. If not, use 4-bit data width. Bug 794550 Bug 796574 Bug 796220 Original-Change-Id: Icd8536e0e0b2db77d1443fbbf0ba6b90b51b62ca Reviewed-on: http://git-master/r/20746 Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Tested-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Change-Id: I85a1f68f2faf0751ada631132b19116e3b574bc5
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-tegra.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index bc0bac4309e9..bfb878839483 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -349,13 +349,15 @@ static int __devinit tegra_sdhci_probe(struct platform_device *pdev)
SDHCI_QUIRK_BROKEN_WRITE_PROTECT |
SDHCI_QUIRK_BROKEN_CTRL_HISPD |
SDHCI_QUIRK_NO_HISPD_BIT |
- SDHCI_QUIRK_8_BIT_DATA |
SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |
SDHCI_QUIRK_RUNTIME_DISABLE;
#ifdef CONFIG_ARCH_TEGRA_3x_SOC
sdhci->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION;
#endif
+ if (plat->is_8bit_supported)
+ sdhci->quirks |= SDHCI_QUIRK_8_BIT_DATA;
+
if (plat->force_hs != 0)
sdhci->quirks |= SDHCI_QUIRK_FORCE_HIGH_SPEED_MODE;
#ifdef CONFIG_MMC_EMBEDDED_SDIO