summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@freescale.com>2014-06-09 07:33:53 (GMT)
committerZhenhua Luo <zhenhua.luo@freescale.com>2014-06-10 03:41:11 (GMT)
commitc29fe1a733308cbe592b3af054a97be1b91cf2dd (patch)
tree5f3d97159942d8e223ef166eeaee91476c7fd308 /drivers/mmc
parent89814364e6e05d36751e2c3fd4e0aeef2cefb302 (diff)
downloadlinux-fsl-qoriq-c29fe1a733308cbe592b3af054a97be1b91cf2dd.tar.xz
mmc/eSDHC: host need long time to generate command complete interrupt
According to Spec 2.0, command complete interrupt will be generate within 150 SD-CLK. But this was not long enough for T1040 board. So add quirk SDHCI_QUIRK2_LONG_TIME_CMD_COMPLETE_IRQ to enlarge this detect time to avoid hardware timeout error. Signed-off-by: Wujie Qiu <B49553@freescale.com> Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com> Change-Id: Ia850b3fb707824c65f57511943ec0c91f78d9899 Reviewed-on: http://git.am.freescale.net:8181/13438 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Xiaobo Xie <X.Xie@freescale.com> Reviewed-by: Zhenhua Luo <zhenhua.luo@freescale.com> Tested-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-pltfm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index d4d1728..f0b2030 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -102,7 +102,8 @@ void sdhci_get_of_property(struct platform_device *pdev)
}
if (of_device_is_compatible(np, "fsl,p5020-esdhc") ||
- of_device_is_compatible(np, "fsl,p5040-esdhc"))
+ of_device_is_compatible(np, "fsl,p5040-esdhc") ||
+ of_device_is_compatible(np, "fsl,t1040-esdhc"))
host->quirks2 |= SDHCI_QUIRK2_LONG_TIME_CMD_COMPLETE_IRQ;
if (of_device_is_compatible(np, "fsl,p5040-esdhc") ||