aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2010-08-10 21:01:56 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-11 11:59:05 -0400
commitce5f036bbbfc6c21d7b55b8fdaa2e2bd56392d94 (patch)
tree9567c61e6df52664b86c0d0da9f0cdb5a52de4b6 /drivers/mmc/host/sdhci.c
parent3fe42e077f65351503f5004031549db330bb105e (diff)
sdhci-s3c: add support for the non standard minimal clock value
S3C SDHCI host controller can change the source for generating mmc clock. By default host bus clock is used, what causes some problems on machines with 133MHz bus, because the SDHCI divider cannot be as high get proper clock value for identification mode. This is not a problem for the controller, because it can generate lower frequencies from other clock sources. This patch changes sdhci driver to use get_min_clock() call if it has been provided. This fixes the flood of the following warnings on Samsung S5PV210 SoCs: mmc0: Minimum clock frequency too high for identification mode Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r--drivers/mmc/host/sdhci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 3896069bd984..70001ecb6ebe 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1791,8 +1791,7 @@ int sdhci_add_host(struct sdhci_host *host)
1791 * Set host parameters. 1791 * Set host parameters.
1792 */ 1792 */
1793 mmc->ops = &sdhci_ops; 1793 mmc->ops = &sdhci_ops;
1794 if (host->quirks & SDHCI_QUIRK_NONSTANDARD_CLOCK && 1794 if (host->ops->get_min_clock)
1795 host->ops->get_min_clock)
1796 mmc->f_min = host->ops->get_min_clock(host); 1795 mmc->f_min = host->ops->get_min_clock(host);
1797 else 1796 else
1798 mmc->f_min = host->max_clk / 256; 1797 mmc->f_min = host->max_clk / 256;