aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVipul Kumar Samar <vipulkumar.samar@st.com>2012-11-08 10:09:09 -0500
committerChris Ball <cjb@laptop.org>2012-12-06 13:55:02 -0500
commit257f9df12307cb0239196d9ec18e2af12c52435e (patch)
treef6f2410f0989a9b2f09a974549d67620340fe3cc
parentb96efccb8fc9939605599e5b2c026644973cc92d (diff)
mmc: sdhci-spear: Initialize sdhci clk to 50 MHz
SPEAr sdhci driver expects the clock to be set to 50 MHz for proper functioning. This patch sets clk to 50 MHz in probe. Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/host/sdhci-spear.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c
index 6be89c032deb..fea8bf92efab 100644
--- a/drivers/mmc/host/sdhci-spear.c
+++ b/drivers/mmc/host/sdhci-spear.c
@@ -146,6 +146,11 @@ static int __devinit sdhci_probe(struct platform_device *pdev)
146 goto put_clk; 146 goto put_clk;
147 } 147 }
148 148
149 ret = clk_set_rate(sdhci->clk, 50000000);
150 if (ret)
151 dev_dbg(&pdev->dev, "Error setting desired clk, clk=%lu\n",
152 clk_get_rate(sdhci->clk));
153
149 if (np) { 154 if (np) {
150 sdhci->data = sdhci_probe_config_dt(pdev); 155 sdhci->data = sdhci_probe_config_dt(pdev);
151 if (IS_ERR(sdhci->data)) { 156 if (IS_ERR(sdhci->data)) {