mmc: tegra: Set eMMC DDR clock based on emc clock
authorPavan Kunapuli <pkunapuli@nvidia.com>
Mon, 7 May 2012 12:13:25 +0000 (17:13 +0530)
committerSimone Willett <swillett@nvidia.com>
Mon, 14 May 2012 20:34:28 +0000 (13:34 -0700)
commit972f06eca12e96e048a7869a69c3bbe5000de71c
treef3899f850b34187464b22690d1de2f0f75c86807
parentccfe6a3b2eed40f210a5d5eed9205ac10fdef19c
mmc: tegra: Set eMMC DDR clock based on emc clock

Set the eMMC ddr mode clock dynamically based on emc
clock rate. If ddr clock limit is specified and the emc
clock is less than max emc freq, then limit emmc ddr
clk. If not, set the max eMMC ddr clock.

Bug 967719

Change-Id: I9f70077c4ac4bb1f3e6d894fcb8420b1aba284dd
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/100579
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/mmc/host/sdhci-tegra.c