1 --- kernel-maemo-2.6.28.orig/arch/arm/mach-omap2/omap3-opp.h
2 +++ kernel-maemo-2.6.28/arch/arm/mach-omap2/omap3-opp.h
4 #include <mach/omap-pm.h>
7 +#define S1150M 1150000000
8 +#define S1100M 1100000000
9 +#define S1000M 1000000000
10 +#define S950M 950000000
11 +#define S900M 900000000
12 +#define S850M 850000000
13 +#define S810M 810000000
14 +#define S750M 750000000
15 +#define S700M 700000000
16 #define S600M 600000000
17 #define S550M 550000000
18 #define S500M 500000000
20 #define S125M 125000000
23 +#define S520M 500000000
24 #define S430M 430000000
25 #define S400M 400000000
26 #define S360M 360000000
29 static struct omap_opp omap3_mpu_rate_table[] = {
32 - {0, VDD1_OPP1, 0x1E},
34 - {S250M, VDD1_OPP2, 0x26},
36 - {S500M, VDD1_OPP3, 0x30},
38 - {S550M, VDD1_OPP4, 0x36},
40 - {S600M, VDD1_OPP5, 0x3C},
57 static struct omap_opp omap3_l3_rate_table[] = {
60 static struct omap_opp omap3_dsp_rate_table[] = {
63 - {S90M, VDD1_OPP1, 0x1E},
65 - {S180M, VDD1_OPP2, 0x26},
67 - {S360M, VDD1_OPP3, 0x30},
69 - {S400M, VDD1_OPP4, 0x36},
71 - {S430M, VDD1_OPP5, 0x3C},
81 + {S430M, 7, 0x30},/*800MHz*/
91 --- kernel-maemo-2.6.28.orig/arch/arm/plat-omap/include/mach/omap34xx.h
92 +++ kernel-maemo-2.6.28/arch/arm/plat-omap/include/mach/omap34xx.h
96 #define MIN_VDD1_OPP VDD1_OPP1
97 -#define MAX_VDD1_OPP VDD1_OPP5
98 +#define MAX_VDD1_OPP 13
99 #define MIN_VDD2_OPP VDD2_OPP1
100 #define MAX_VDD2_OPP VDD2_OPP3
102 --- kernel-maemo-2.6.28.orig/arch/arm/mach-omap2/smartreflex.c
103 +++ kernel-maemo-2.6.28/arch/arm/mach-omap2/smartreflex.c
104 @@ -513,20 +513,17 @@
105 sr->req_opp_no = target_opp_no;
107 if (sr->srid == SR1) {
108 - switch (target_opp_no) {
110 + switch (min(target_opp_no,4)) {
112 nvalue_reciprocal = sr->opp5_nvalue;
116 nvalue_reciprocal = sr->opp4_nvalue;
120 nvalue_reciprocal = sr->opp3_nvalue;
123 - nvalue_reciprocal = sr->opp2_nvalue;
127 nvalue_reciprocal = sr->opp1_nvalue;
130 --- kernel-maemo-2.6.28.orig/arch/arm/plat-omap/cpu-omap.c
131 +++ kernel-maemo-2.6.28/arch/arm/plat-omap/cpu-omap.c
132 @@ -148,10 +148,12 @@
133 VERY_HI_RATE) / 1000;
136 - clk_set_rate(mpu_clk, policy->cpuinfo.max_freq * 1000);
137 + /*clk_set_rate(mpu_clk, policy->cpuinfo.max_freq * 1000);*/
138 + clk_set_rate(mpu_clk, 850000 * 1000); /*N900 hack: set default max to 850MHz */
140 policy->min = policy->cpuinfo.min_freq;
141 - policy->max = policy->cpuinfo.max_freq;
142 + /*policy->max = policy->cpuinfo.max_freq;*/
143 + policy->max = 850000; /*N900 hack: set default to 500-850MHz */
144 policy->cur = omap_getspeed(0);
146 policy->cpuinfo.transition_latency = 300 * 1000;
147 --- kernel-maemo-2.6.28.orig/drivers/cpufreq/cpufreq.c
148 +++ kernel-maemo-2.6.28/drivers/cpufreq/cpufreq.c
151 * cpufreq_per_cpu_attr_write() / store_##file_name() - sysfs write access
153 -#define store_one(file_name, object) \
154 +#define store_one(file_name, object,ignore) \
155 static ssize_t store_##file_name \
156 (struct cpufreq_policy *policy, const char *buf, size_t count) \
158 @@ -479,15 +479,16 @@
159 ret = sscanf (buf, "%u", &new_policy.object); \
163 - ret = __cpufreq_set_policy(policy, &new_policy); \
164 + printk(KERN_DEBUG "cpufreq: request %u -> %u\n",policy->object,new_policy.object); \
165 + if (new_policy.object != ignore && new_policy.object >= 100000) \
166 + ret = __cpufreq_set_policy(policy, &new_policy); \
167 policy->user_policy.object = policy->object; \
169 return ret ? ret : count; \
172 -store_one(scaling_min_freq,min);
173 -store_one(scaling_max_freq,max);
174 +store_one(scaling_min_freq,min,600000);
175 +store_one(scaling_max_freq,max,600000);
178 * show_cpuinfo_cur_freq - current CPU frequency as detected by hardware
179 --- kernel-maemo-2.6.28.orig/Makefile
180 +++ kernel-maemo-2.6.28/Makefile
185 -EXTRAVERSION = .10maemo
186 +EXTRAVERSION = .10maemo-xlv
187 NAME = Erotic Pickled Herring
190 --- kernel-maemo-2.6.28.orig/arch/arm/mach-omap2/smartreflex.h
191 +++ kernel-maemo-2.6.28/arch/arm/mach-omap2/smartreflex.h
193 /* XXX: end remove/move */
195 /* SR_MAX_LOW_OPP: the highest of the "low OPPs", 1 and 2. */
196 -#define SR_MAX_LOW_OPP 2
197 +#define SR_MAX_LOW_OPP 1
199 /* XXX: find more appropriate place for these once DVFS is in place */
200 extern u32 current_vdd1_opp;