diff options
author | Abhilash Kesavan <a.kesavan@samsung.com> | 2012-11-18 23:56:20 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-12-06 13:54:53 -0500 |
commit | f5ccfd4174639119664b6d76495ea1388f13b838 (patch) | |
tree | bcb27655875cdb76968116f00be6768a3d83f1e9 /drivers/mmc | |
parent | e5d0e9c567389e261fbad6311ea78e6b8d4a24e9 (diff) |
mmc: sdhci-pltfm: Support optional pm properties
Add support for optional pm capabilities such as MMC_PM_KEEP_POWER
and MMC_PM_WAKE_SDIO_IRQ.
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-pltfm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 27164457f861..c6c3b1243597 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c | |||
@@ -89,6 +89,12 @@ void sdhci_get_of_property(struct platform_device *pdev) | |||
89 | clk = of_get_property(np, "clock-frequency", &size); | 89 | clk = of_get_property(np, "clock-frequency", &size); |
90 | if (clk && size == sizeof(*clk) && *clk) | 90 | if (clk && size == sizeof(*clk) && *clk) |
91 | pltfm_host->clock = be32_to_cpup(clk); | 91 | pltfm_host->clock = be32_to_cpup(clk); |
92 | |||
93 | if (of_find_property(np, "keep-power-in-suspend", NULL)) | ||
94 | host->mmc->pm_caps |= MMC_PM_KEEP_POWER; | ||
95 | |||
96 | if (of_find_property(np, "enable-sdio-wakeup", NULL)) | ||
97 | host->mmc->pm_caps |= MMC_PM_WAKE_SDIO_IRQ; | ||
92 | } | 98 | } |
93 | } | 99 | } |
94 | #else | 100 | #else |