mmc: dt: add host-off-card-on dt property
Subsystems (3)
PATCH 1/1 mmc: dt: add host-off-card-on dt property
Add "host-off-card-on" dt property and parse it to support the quirk SDHCI_QUIRK2_HOST_OFF_CARD_ON.
Signed-off-by Wei Ni <[email protected]>
--- Documentation/devicetree/bindings/mmc/mmc.txt | 2 ++ drivers/mmc/host/sdhci-pltfm.c | 3 +++ 2 files changed, 5 insertions(+)
Documentation/devicetree/bindings/mmc/mmc.txt +2 -0
@@ -28,6 +28,8 @@ 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 +- host-off-card-on: when resume, denote that card keeps power + but host controller does not, so that it will reset sdhci all. *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"
drivers/mmc/host/sdhci-pltfm.c +3 -0
@@ -89,6 +89,9 @@ void sdhci_get_of_property(struct platform_device *pdev)if (of_get_property (np,"no-1-8-v" ,NULL )) host->quirks2 |=SDHCI_QUIRK2_NO_1_8_V ; +if (of_get_property (np,"host-off-card-on" ,NULL )) + host->quirks2 |=SDHCI_QUIRK2_HOST_OFF_CARD_ON ; +if (of_device_is_compatible (np,"fsl,p2020-rev1-esdhc" )) host->quirks |=SDHCI_QUIRK_BROKEN_DMA ;
Signature · 1 line
1.7.9.5