summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJerry Huang <Chang-Ming.Huang@freescale.com>2013-03-28 03:00:11 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-04-03 20:40:07 (GMT)
commit385f0474ebdf29abd3d2e2a6ab8388a12e297fcc (patch)
tree1e235455efd93d07e70f4d2eb21c85a6400e4ebe /drivers/mmc
parent10e175c97f71bc15f1335bc512e6accbedf9d73c (diff)
downloadlinux-fsl-qoriq-385f0474ebdf29abd3d2e2a6ab8388a12e297fcc.tar.xz
mmc: esdhc: Add SDHCI_QUIRK_QORIQ_CIRCUIT_SUPPORT_VS33
quirk support On the t4240 platform, sdhci controller can only supports 1.8V voltage, but the peripheral hardware circuit has capability to support 3.3V voltage. Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com> Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com> Change-Id: Ib1d25b5f70575c615d64bf85f7fed2074f8d244d Reviewed-on: http://git.am.freescale.net:8181/852 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-pltfm.c1
-rw-r--r--drivers/mmc/host/sdhci.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index 2eaf7a4..bd41f87 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -93,6 +93,7 @@ void sdhci_get_of_property(struct platform_device *pdev)
if (of_device_is_compatible(np, "fsl,t4240-esdhc")) {
host->quirks2 |= SDHCI_QUIRK2_BROKEN_RESET_ALL;
host->quirks2 |= SDHCI_QUIRK2_LONG_TIME_CMD_COMPLETE_IRQ;
+ host->quirks2 |= SDHCI_QUIRK2_CIRCUIT_SUPPORT_VS33;
}
if (of_device_is_compatible(np, "fsl,p4860-rev1-esdhc") ||
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 170eee3..4f67f21 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2719,6 +2719,9 @@ int sdhci_add_host(struct sdhci_host *host)
host->caps1 :
sdhci_readl(host, SDHCI_CAPABILITIES_1);
+ if (host->quirks2 & SDHCI_QUIRK2_CIRCUIT_SUPPORT_VS33)
+ caps[0] = caps[0] | SDHCI_CAN_VDD_330;
+
if (host->quirks & SDHCI_QUIRK_FORCE_DMA)
host->flags |= SDHCI_USE_SDMA;
else if (!(caps[0] & SDHCI_CAN_DO_SDMA))