mmc: sdhci-of-esdhc: add workaround for pre divider initial value
authorYangbo Lu <yangbo.lu@freescale.com>
Tue, 11 Aug 2015 02:53:34 +0000 (10:53 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 27 Aug 2015 12:50:49 +0000 (14:50 +0200)
commit77bd2f6f6c65b4ad259394d416855ed561f21e8f
tree1ebaf54fa3e5cb0fccdfc54545dc5f2da8417af7
parentd31911b9374a76560d2c8ea4aa6ce5781621e81d
mmc: sdhci-of-esdhc: add workaround for pre divider initial value

For eSDHC(version < 2.3), the pre divider only could divide base clock
by 2 at least. Add workaround for this to avoid unexpected issue.

Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
Acked-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Fixes: bd455029d01c ("mmc: sdhci-of-esdhc: Pre divider starts at 1")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-esdhc.c