Skip to content

Commit 5a36d6b

Browse files
Ulf Hanssoncjb
authored andcommitted
mmc: core: Add DT-bindings for MMC_CAP2_FULL_PWR_CYCLE
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>
1 parent 53275c2 commit 5a36d6b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

  • Documentation/devicetree/bindings/mmc
  • drivers/mmc/core

‎Documentation/devicetree/bindings/mmc/mmc.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Optional properties:
2828
- cap-mmc-highspeed: MMC high-speed timing is supported
2929
- cap-power-off-card: powering off the card is safe
3030
- cap-sdio-irq: enable SDIO IRQ signalling on this interface
31+
- full-pwr-cycle: full power cycle of the card is supported
3132

3233
*NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
3334
polarity properties, we have to fix the meaning of the "normal" and "inverted"

‎drivers/mmc/core/host.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ int mmc_of_parse(struct mmc_host *host)
423423
host->caps |= MMC_CAP_POWER_OFF_CARD;
424424
if (of_find_property(np, "cap-sdio-irq", &len))
425425
host->caps |= MMC_CAP_SDIO_IRQ;
426+
if (of_find_property(np, "full-pwr-cycle", &len))
427+
host->caps2 |= MMC_CAP2_FULL_PWR_CYCLE;
426428
if (of_find_property(np, "keep-power-in-suspend", &len))
427429
host->pm_caps |= MMC_PM_KEEP_POWER;
428430
if (of_find_property(np, "enable-sdio-wakeup", &len))

0 commit comments

Comments
 (0)