mmc: sdhci-esdhc-imx: correct pre_div for imx6q
authorDong Aisheng <b29396@freescale.com>
Fri, 13 Sep 2013 11:11:36 +0000 (19:11 +0800)
committerChris Ball <cjb@laptop.org>
Thu, 26 Sep 2013 11:57:29 +0000 (07:57 -0400)
commit5f7886c5ef40c79b5811f23219167096ab578a91
tree244f198da299cdccdb0e5aeae3f3c31a47d15fe9
parentad93220de7da1f5bd8f9e4be1f1eeefba5eed0ad
mmc: sdhci-esdhc-imx: correct pre_div for imx6q

According to spec, the pre_div for imx6q should be 1, or the biggest
clock rate we can get is a half of host clock rate.  This may cause
we can not get the proper clock rate as we want.  e.g. if the desired
clock is 200Mhz, however, the host clock is 200Mhz too, then it causes
the actual clock we get is 100Mhz due to pre_div is 2.

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