mmc: sdhci: switch from programmable clock mode to divided one if needed
authorludovic.desroches@atmel.com <ludovic.desroches@atmel.com>
Wed, 29 Jul 2015 14:22:46 +0000 (16:22 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Aug 2015 09:25:53 +0000 (11:25 +0200)
commit5497159c460fadf0d8190b6ef144ec22fa26aa6b
tree7f96b78d9b1b2ef162c22cc98b6cb07815aa4dfa
parent57e104864bc4874a36796fd222d8d084dbf90b9b
mmc: sdhci: switch from programmable clock mode to divided one if needed

In programmable mode, if the clock frequency is too high, the divider
can be too small to meet the clock frequency requirement especially to
init the SD card. In this case, switch to the divided clock mode.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c