diff options
author | Daniel Mack <zonque@gmail.com> | 2014-02-17 06:36:33 -0500 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-03-04 11:44:39 -0500 |
commit | c9ae64db673d5b0bdd6494a59afcc5ed72669932 (patch) | |
tree | a36349a3b83a73c67a26a3733b16e1e28be608dc | |
parent | a8d6fb5de83bc49f8feccdc34a8663978f74820c (diff) |
mmc: omap_hsmmc: support more DT properties
This should probably be done implicitly through mmc_of_parse(), but that
doesn't play well along with the multi-slot model the hsmmc driver
features. Hence, for now, do it manually. The properties are already
documented in Documentation/devicetree/bindings/mmc/mmc.txt.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Chris Ball <chris@printf.net>
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index b1ac26a76306..83240f05e917 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
@@ -1753,6 +1753,12 @@ static struct omap_mmc_platform_data *of_get_hsmmc_pdata(struct device *dev) | |||
1753 | if (of_find_property(np, "ti,needs-special-hs-handling", NULL)) | 1753 | if (of_find_property(np, "ti,needs-special-hs-handling", NULL)) |
1754 | pdata->slots[0].features |= HSMMC_HAS_HSPE_SUPPORT; | 1754 | pdata->slots[0].features |= HSMMC_HAS_HSPE_SUPPORT; |
1755 | 1755 | ||
1756 | if (of_find_property(np, "keep-power-in-suspend", NULL)) | ||
1757 | pdata->slots[0].pm_caps |= MMC_PM_KEEP_POWER; | ||
1758 | |||
1759 | if (of_find_property(np, "enable-sdio-wakeup", NULL)) | ||
1760 | pdata->slots[0].pm_caps |= MMC_PM_WAKE_SDIO_IRQ; | ||
1761 | |||
1756 | return pdata; | 1762 | return pdata; |
1757 | } | 1763 | } |
1758 | #else | 1764 | #else |