summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2012-09-15 06:20:00 +0200
committerChris Ball <cjb@laptop.org>2012-10-07 23:41:42 +0200
commit38ca7248054b6fd92a6a49963beb87f3746115ec (patch)
tree47f4d5e4b2b0e840cce84196b32bbc6a2485d829 /drivers/mmc
parentmmc: sdhci-s3c: fix the wrong number of max bus clocks (diff)
downloadlinux-38ca7248054b6fd92a6a49963beb87f3746115ec.tar.xz
linux-38ca7248054b6fd92a6a49963beb87f3746115ec.zip
mmc: dt: Support "broken-cd" property in sdhci-pltfm
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-pltfm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index d9a4ef4f1ed0..65551a9709cc 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -75,6 +75,9 @@ void sdhci_get_of_property(struct platform_device *pdev)
if (sdhci_of_wp_inverted(np))
host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT;
+ if (of_get_property(np, "broken-cd", NULL))
+ host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION;
+
if (of_device_is_compatible(np, "fsl,p2020-rev1-esdhc"))
host->quirks |= SDHCI_QUIRK_BROKEN_DMA;