]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: sdhci-esdhc-imx: add std tuning support for mx6sl
authorDong Aisheng <b29396@freescale.com>
Fri, 18 Oct 2013 11:48:43 +0000 (19:48 +0800)
committerChris Ball <chris@printf.net>
Mon, 21 Oct 2013 19:57:58 +0000 (15:57 -0400)
commit6e9fd28e1f2422e8e5ad3c9871c952aad6a7e5ca
tree0dd686b2c1988ca94a4f9a963fb5eb4ec3367775
parentf47c4bbfa283df2dfd23c422c53f96d12005bbf6
mmc: sdhci-esdhc-imx: add std tuning support for mx6sl

The mx6sl supports standard sdhci tuning, then esdhc_executing_tuning
is only needed for mx6q/dl. We introduce is_imx6_usdhc() and
is_imx6sl_usdhc() to handle the difference.

The standard tuning is enabled by setting ESDHC_TUNE_CTRL_STD_TUNING_EN bit
in new register ESDHC_TUNE_CTRL and operates with new tuning bits
defined in SDHCI_ACMD12_ERR register.

Note: mx6sl can also work on the old manually tuning mode as mx6q/dl if
not enable standard tuning mode.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-esdhc-imx.c