PoweOP, OMAP1 CpuFreq PowerOP integration 3/3
Subsystems (2)
RFC 1/1 PoweOP, OMAP1 CpuFreq PowerOP integration 3/3
A minimal example of modifying cpufreq to use PowerOP on OMAP1710.
cpufreq utilizes 2 power parameters out of 8 available on omap1 platform.
The are two patches attached. The patch order is :
mpu.clock.reference.count.fix.patch
omap1.cpufreq.powerop.patch
mpu.clock.reference.count.fix.patch is just a trivial fix for a minor issue.
arch/arm/plat-omap/cpu-omap.c +3 -2
@@ -101,12 +101,13 @@ static int __init omap_cpu_init(struct c {struct clk * mpu_clk; +if (policy->cpu !=0 ) +return -EINVAL ; + mpu_clk =clk_get (NULL ,MPU_CLK );if (IS_ERR (mpu_clk))return PTR_ERR (mpu_clk); -if (policy->cpu !=0 ) -return -EINVAL ; policy->cur = policy->min = policy->max =omap_getspeed (0 ); policy->governor =CPUFREQ_DEFAULT_GOVERNOR ; policy->cpuinfo.min_freq =clk_round_rate (mpu_clk,0 ) /1000 ;
arch/arm/plat-omap/cpu-omap.c +105 -35
209 lines not on this page · raw message