mmc: core: Add DT-bindings for MMC_CAP2_FULL_PWR_CYCLE
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2013 15:03:47 +0000 (17:03 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 16:39:22 +0000 (12:39 -0400)
The DT-binding for MMC_CAP2_FULL_PWR_CYCLE, is used to indicate whether
it is possible to perform a full power cycle of the card.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Documentation/devicetree/bindings/mmc/mmc.txt
drivers/mmc/core/host.c

index 85aada2263d54b9c26717ff89eae95a6ef8507a5..458b57f199afe6d56eb425ee4cbdceb532c28b53 100644 (file)
@@ -28,6 +28,7 @@ Optional properties:
 - cap-mmc-highspeed: MMC high-speed timing is supported
 - cap-power-off-card: powering off the card is safe
 - cap-sdio-irq: enable SDIO IRQ signalling on this interface
+- full-pwr-cycle: full power cycle of the card is supported
 
 *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
 polarity properties, we have to fix the meaning of the "normal" and "inverted"
index 89f58498409a2817283d54763dfbfd653e60034d..6fb6f77450cba2237cd2d07a18fc951b5b1397cc 100644 (file)
@@ -423,6 +423,8 @@ int mmc_of_parse(struct mmc_host *host)
                host->caps |= MMC_CAP_POWER_OFF_CARD;
        if (of_find_property(np, "cap-sdio-irq", &len))
                host->caps |= MMC_CAP_SDIO_IRQ;
+       if (of_find_property(np, "full-pwr-cycle", &len))
+               host->caps2 |= MMC_CAP2_FULL_PWR_CYCLE;
        if (of_find_property(np, "keep-power-in-suspend", &len))
                host->pm_caps |= MMC_PM_KEEP_POWER;
        if (of_find_property(np, "enable-sdio-wakeup", &len))