summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2014-01-13 16:26:19 +0800
committerDong Aisheng <b29396@freescale.com>2014-01-15 15:05:59 +0800
commitb3004ac0a04de92da49549cf2a2ef31188abe5e0 (patch)
tree4c5ae4c39ea9b96ced80d22bf3a8ce93c76f71f0 /drivers
parent7b8d0abd46a4b2a3daba6fa0d7c4ee9d50748bf5 (diff)
ENGR00295184-3 mmc: sdhci-esdhc-imx: add keep power feature during suspend
IMX boards can keep power for cards during suspend. User can enable it from device tree. Signed-off-by: Dong Aisheng <b29396@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/sdhci-esdhc-imx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index adb5a8d6ab56..d2b9e2933844 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -941,6 +941,7 @@ sdhci_esdhc_imx_probe_dt(struct platform_device *pdev,
struct esdhc_platform_data *boarddata)
{
struct device_node *np = pdev->dev.of_node;
+ struct sdhci_host *host = platform_get_drvdata(pdev);
if (!np)
return -ENODEV;
@@ -972,6 +973,9 @@ sdhci_esdhc_imx_probe_dt(struct platform_device *pdev,
if (of_property_read_u32(np, "fsl,delay-line", &boarddata->delay_line))
boarddata->delay_line = 0;
+ if (of_find_property(np, "keep-power-in-suspend", NULL))
+ host->mmc->pm_caps |= MMC_PM_KEEP_POWER;
+
return 0;
}
#else