diff options
author | Dong Aisheng <b29396@freescale.com> | 2014-01-13 16:26:19 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-09-17 08:59:23 -0500 |
commit | c2c835830fd245c74a80c11eae9e4e81ddc3d26d (patch) | |
tree | 1e8d58febaeb8fdb7bbad32eadcb6871bd5a1027 /drivers/mmc/host | |
parent | 6f727706d5188e93ab21c46c39e586efa1416faf (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>
(cherry picked from commit c493df82295e0384f81c21cf126412280d81411d)
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/sdhci-esdhc-imx.c | 4 |
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 fbb449b8f1c2..3b972aa716ca 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -914,6 +914,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; @@ -947,6 +948,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 |