summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishwanath BS <vishwanath.bs@ti.com>2011-02-25 12:52:08 +0530
committerNicolas Pitre <nicolas.pitre@linaro.org>2011-02-28 15:46:13 -0500
commit61dde43f99d3977b31c23719a3967fd58a1c354b (patch)
treea0fda9b734a8f45c82b3248572dc413641601658
parent1674746ea72d7817bd1e51d3b1266a540199718c (diff)
OMAP2PLUS: cpufreq DVFS changes
This patch adds support for DVFS in cpufreq driver by replacing clock api with DVFS api. Signed-off-by: Vishwanath BS <vishwanath.bs@ti.com> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
-rw-r--r--arch/arm/mach-omap2/omap2plus-cpufreq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap2plus-cpufreq.c b/arch/arm/mach-omap2/omap2plus-cpufreq.c
index 8c903c18e9b..e982e13f2af 100644
--- a/arch/arm/mach-omap2/omap2plus-cpufreq.c
+++ b/arch/arm/mach-omap2/omap2plus-cpufreq.c
@@ -37,6 +37,7 @@
#include <plat/common.h>
#include <mach/hardware.h>
+#include <plat/dvfs.h>
#define VERY_HI_RATE 900000000
@@ -78,6 +79,7 @@ static int omap_target(struct cpufreq_policy *policy,
{
int i, ret = 0;
struct cpufreq_freqs freqs;
+ struct device *mpu_dev = omap2_get_mpuss_device();
/* Wait untill all CPU's are initialized */
if (is_smp() && (num_online_cpus() < NR_CPUS))
@@ -113,7 +115,7 @@ set_freq:
pr_info("cpufreq-omap: transition: %u --> %u\n", freqs.old, freqs.new);
#endif
- ret = clk_set_rate(mpu_clk, freqs.new * 1000);
+ ret = omap_device_scale(mpu_dev, mpu_dev, freqs.new * 1000);
if (ret)
return ret;
freqs.new = omap_getspeed(policy->cpu);