mmc: sdhci-esdhc-imx: set the correct max timeout value for uSDHC
authorAisheng Dong <b29396@freescale.com>
Wed, 27 Aug 2014 07:26:30 +0000 (15:26 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:21 +0000 (13:59 +0200)
commite33eb8e2818c9a7b41bac68a1c83ee4c136af9ba
tree3ec6b9d6eb91b96463877def483f86dd8efd5408
parentb45e668af4439bfc52ed92af44b6400661ba7ec8
mmc: sdhci-esdhc-imx: set the correct max timeout value for uSDHC

The default sdhci driver write 0xE into timeout counter register to
set the maximum timeout. The value is not correct for uSDHC since the
max counter value for uSDHC is 0xF.
Instead of using common timeout code in sdhci, we implement esdhc_set_timeout
to handle the difference between eSDHC and uSDHC.

Currently we simply set the max timeout value as before.
But in the future, we probably may implement IMX specific timeout
setting algorithm and use suitable timeout for different CMDs.

Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c
This page took 0.027066 seconds and 5 git commands to generate.