mmc: sdhci-esdhc-imx: fix strobe DLL lock wrong clock issue
authorDong Aisheng <aisheng.dong@nxp.com>
Tue, 12 Jul 2016 07:46:20 +0000 (15:46 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:57 +0000 (10:34 +0200)
commit7ac6da2623a4d4b68c61bc289451ac630ae8ec35
treebeb8fc70c9bae06813a34c6b313c923627ae5535
parentda0295ff1db13765ad0da6cc7c2117f15c83b562
mmc: sdhci-esdhc-imx: fix strobe DLL lock wrong clock issue

When enable DDR, the clock factor definition is changed.
e.g. original 200Mhz will become 100Mhz once MIX_CTRL_DDREN bit is set
So we need to update the clock setting then the strobe dll can lock
the correct clock rate.

Additionally we also need disable the clock before locking strobe dll.

Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c