diff options
author | Amit Kamath <akamath@nvidia.com> | 2011-02-04 18:08:19 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-02-16 14:28:21 -0800 |
commit | 3a8c76ae1374e2fdb66b479dd56122c07c5729c2 (patch) | |
tree | 745b99cb2773ffae40123fc88843f096be5ad1d1 | |
parent | 2985c665ee86305c4adb38bcda1c9d19592c28d9 (diff) |
ARM: tegra: cpufreq: finer values for emc scaling
Added support for emc frequencies 75,100,25 Mhz scaling
Change-Id: Id5f170a380c3acbc7a375ab5e5018628549b992f
Reviewed-on: http://git-master/r/18340
Reviewed-by: Amit Kamath <akamath@nvidia.com>
Tested-by: Amit Kamath <akamath@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/cpu-tegra.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/cpu-tegra.c b/arch/arm/mach-tegra/cpu-tegra.c index 21dedf62d14e..c5a1f41e7f11 100644 --- a/arch/arm/mach-tegra/cpu-tegra.c +++ b/arch/arm/mach-tegra/cpu-tegra.c @@ -220,10 +220,14 @@ static int tegra_update_cpu_speed(unsigned long rate) */ if (rate >= 816000) clk_set_rate(emc_clk, 600000000); /* cpu 816 MHz, emc max */ + else if (rate >= 608000) + clk_set_rate(emc_clk, 300000000); /* cpu 608 MHz, emc 150Mhz */ else if (rate >= 456000) - clk_set_rate(emc_clk, 300000000); /* cpu 456 MHz, emc 150Mhz */ + clk_set_rate(emc_clk, 150000000); /* cpu 456 MHz, emc 75Mhz */ + else if (rate >= 312000) + clk_set_rate(emc_clk, 100000000); /* cpu 312 MHz, emc 50Mhz */ else - clk_set_rate(emc_clk, 100000000); /* emc 50Mhz */ + clk_set_rate(emc_clk, 50000000); /* emc 25Mhz */ for_each_online_cpu(freqs.cpu) cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); |