diff options
author | Haijun.Zhang <Haijun.Zhang@freescale.com> | 2013-06-09 04:52:39 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-07-12 20:40:28 (GMT) |
commit | 124ff6755843ee1ba7a0c089dea130b105c8e22c (patch) | |
tree | 94afea62d4dfbdb4e83de28859509798d1797755 | |
parent | 9497f346290072c8a3ef078b6ca881c19aa27bde (diff) | |
download | linux-fsl-qoriq-124ff6755843ee1ba7a0c089dea130b105c8e22c.tar.xz |
Powerpc/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 P5020 board. So add quirk
SDHCI_QUIRK2_LONG_TIME_CMD_COMPLETE_IRQ to enlarge this detect time to avoid
hardware timeout error.
Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
Change-Id: Ic88976d277b932550fa0a144ace0b01476e40bb4
Reviewed-on: http://git.am.freescale.net:8181/2906
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Xie Xiaobo-R63061 <X.Xie@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
-rw-r--r-- | drivers/mmc/host/sdhci-pltfm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 59d79a7..1bfb30e 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -94,6 +94,9 @@ void sdhci_get_of_property(struct platform_device *pdev) host->quirks |= SDHCI_QUIRK_BROKEN_ADMA; } + if (of_device_is_compatible(np, "fsl,p5020-esdhc")) + host->quirks2 |= SDHCI_QUIRK2_LONG_TIME_CMD_COMPLETE_IRQ; + if (of_device_is_compatible(np, "fsl,p5040-esdhc") || of_device_is_compatible(np, "fsl,p4080-esdhc") || of_device_is_compatible(np, "fsl,p1020-esdhc")) |