mmc: sdhci-of-at91: add presets setup
authorLudovic Desroches <ludovic.desroches@atmel.com>
Thu, 28 Apr 2016 12:59:26 +0000 (14:59 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 May 2016 07:28:03 +0000 (09:28 +0200)
commit4406433dec687c54be48a18a71dd28acb319137e
tree4490cfce5f9a6f9efacba21a788afae2ff8c6166
parent488aab3d0c02b77d8d8f63a6abddb9d8beeea11a
mmc: sdhci-of-at91: add presets setup

The controller claims to support SDR104. In fact, it only supports a
degraded SDR104 since the maximum frequency of the SD clock is 120 MHz
instead of 208 MHz.
The sdhci core is unaware of it and will compute a wrong clock divider.
We can deal with this specific case by using presets.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c