diff options
-rw-r--r-- | Documentation/devicetree/bindings/mmc/mmc.txt | 4 | ||||
-rw-r--r-- | drivers/mmc/core/host.c | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index 654b705fc5b7..85aada2263d5 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt | |||
@@ -24,6 +24,10 @@ Optional properties: | |||
24 | - max-frequency: maximum operating clock frequency | 24 | - max-frequency: maximum operating clock frequency |
25 | - no-1-8-v: when present, denotes that 1.8v card voltage is not supported on | 25 | - no-1-8-v: when present, denotes that 1.8v card voltage is not supported on |
26 | this system, even if the controller claims it is. | 26 | this system, even if the controller claims it is. |
27 | - cap-sd-highspeed: SD high-speed timing is supported | ||
28 | - cap-mmc-highspeed: MMC high-speed timing is supported | ||
29 | - cap-power-off-card: powering off the card is safe | ||
30 | - cap-sdio-irq: enable SDIO IRQ signalling on this interface | ||
27 | 31 | ||
28 | *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line | 32 | *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line |
29 | polarity properties, we have to fix the meaning of the "normal" and "inverted" | 33 | polarity properties, we have to fix the meaning of the "normal" and "inverted" |
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 9c53452e73e1..821cd8224137 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c | |||
@@ -400,6 +400,19 @@ void mmc_of_parse(struct mmc_host *host) | |||
400 | } | 400 | } |
401 | if (explicit_inv_wp ^ gpio_inv_wp) | 401 | if (explicit_inv_wp ^ gpio_inv_wp) |
402 | host->caps2 |= MMC_CAP2_RO_ACTIVE_HIGH; | 402 | host->caps2 |= MMC_CAP2_RO_ACTIVE_HIGH; |
403 | |||
404 | if (of_find_property(np, "cap-sd-highspeed", &len)) | ||
405 | host->caps |= MMC_CAP_SD_HIGHSPEED; | ||
406 | if (of_find_property(np, "cap-mmc-highspeed", &len)) | ||
407 | host->caps |= MMC_CAP_MMC_HIGHSPEED; | ||
408 | if (of_find_property(np, "cap-power-off-card", &len)) | ||
409 | host->caps |= MMC_CAP_POWER_OFF_CARD; | ||
410 | if (of_find_property(np, "cap-sdio-irq", &len)) | ||
411 | host->caps |= MMC_CAP_SDIO_IRQ; | ||
412 | if (of_find_property(np, "keep-power-in-suspend", &len)) | ||
413 | host->pm_caps |= MMC_PM_KEEP_POWER; | ||
414 | if (of_find_property(np, "enable-sdio-wakeup", &len)) | ||
415 | host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ; | ||
403 | } | 416 | } |
404 | 417 | ||
405 | EXPORT_SYMBOL(mmc_of_parse); | 418 | EXPORT_SYMBOL(mmc_of_parse); |