sdhci: tegra: Set sdmmc controller clk rate
authorPavan Kunapuli <pkunapuli@nvidia.com>
Wed, 23 Nov 2011 11:15:58 +0000 (16:15 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:50:20 +0000 (21:50 -0800)
commite8d42ed7a2ac6f93f52b7df71b9895a21536545a
tree3c25b0c3c02115635c2632bb8ef8af518b955166
parentdf82b6371ab4247e085e12c983d88e7758b3c566
sdhci: tegra: Set sdmmc controller clk rate

Setting the appropriate clk rates for sdmmc controllers. The min clk
rate is 50MHz. For freq between 50MHz and 104MHz, 104MHz clk rate is
set. If freq higher than 104MHz is requested, then the corresponding
clk rate is set.

Bug 906190
Bug 896706

Change-Id: Ie81c5b027e187503d420bbd571879a98c754d252
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/64836
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R3b9447946327071bba295453c391174953f02b1a
drivers/mmc/host/sdhci-tegra.c