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 S1200M 1200000000
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
19 #define S250M 250000000
20 -#define S125M 125000000
21 +#define S125M 124999000
24 #define S430M 430000000
27 static struct omap_opp omap3_mpu_rate_table[] = {
32 - {S250M, VDD1_OPP2, 0x26},
34 - {S500M, VDD1_OPP3, 0x30},
36 - {S550M, VDD1_OPP4, 0x36},
38 - {S600M, VDD1_OPP5, 0x3C},
40 + {S125M, VDD1_OPP2, 0x1E},
42 + {S250M, VDD1_OPP3, 0x26},
43 + {S500M, VDD1_OPP4, 0x30},
44 + {S550M, VDD1_OPP5, 0x30},
58 static struct omap_opp omap3_l3_rate_table[] = {
61 static struct omap_opp omap3_dsp_rate_table[] = {
65 {S90M, VDD1_OPP1, 0x1E},
67 - {S180M, VDD1_OPP2, 0x26},
69 - {S360M, VDD1_OPP3, 0x30},
71 - {S400M, VDD1_OPP4, 0x36},
73 - {S430M, VDD1_OPP5, 0x3C},
75 + {S90M, VDD1_OPP2, 0x1E},
76 + {S180M, VDD1_OPP3, 0x26},
77 + {S360M, VDD1_OPP4, 0x30},
78 + {S400M, VDD1_OPP5, 0x36},
83 + {S430M, 9, 0x36},/*800MHz*/
93 --- kernel-maemo-2.6.28.orig/arch/arm/plat-omap/include/mach/omap34xx.h
94 +++ kernel-maemo-2.6.28/arch/arm/plat-omap/include/mach/omap34xx.h
98 #define MIN_VDD1_OPP VDD1_OPP1
99 -#define MAX_VDD1_OPP VDD1_OPP5
100 +/*#define MAX_VDD1_OPP VDD1_OPP5*/
101 +#define MAX_VDD1_OPP 15
102 #define MIN_VDD2_OPP VDD2_OPP1
103 #define MAX_VDD2_OPP VDD2_OPP3
105 --- kernel-maemo-2.6.28.orig/arch/arm/mach-omap2/smartreflex.c
106 +++ kernel-maemo-2.6.28/arch/arm/mach-omap2/smartreflex.c
108 sr->req_opp_no = target_opp_no;
110 if (sr->srid == SR1) {
111 - switch (target_opp_no) {
112 + switch (min(target_opp_no-1,5)) {
114 nvalue_reciprocal = sr->opp5_nvalue;
117 nvalue_reciprocal = sr->opp2_nvalue;
121 nvalue_reciprocal = sr->opp1_nvalue;
124 --- kernel-maemo-2.6.28.orig/arch/arm/plat-omap/cpu-omap.c
125 +++ kernel-maemo-2.6.28/arch/arm/plat-omap/cpu-omap.c
126 @@ -148,10 +148,13 @@
127 VERY_HI_RATE) / 1000;
130 - clk_set_rate(mpu_clk, policy->cpuinfo.max_freq * 1000);
131 + /*clk_set_rate(mpu_clk, policy->cpuinfo.max_freq * 1000);*/
132 + clk_set_rate(mpu_clk, 600000 * 1000); /*N900 hack: set default max to 600MHz */
134 - policy->min = policy->cpuinfo.min_freq;
135 - policy->max = policy->cpuinfo.max_freq;
136 + /*policy->min = policy->cpuinfo.min_freq;*/
137 + /*policy->max = policy->cpuinfo.max_freq;*/
138 + policy->min = 250000;
139 + policy->max = 600000; /*N900 hack: set default to 250-600MHz */
140 policy->cur = omap_getspeed(0);
142 policy->cpuinfo.transition_latency = 300 * 1000;
143 --- kernel-maemo-2.6.28.orig/arch/arm/mach-omap2/smartreflex.h
144 +++ kernel-maemo-2.6.28/arch/arm/mach-omap2/smartreflex.h
146 /* XXX: end remove/move */
148 /* SR_MAX_LOW_OPP: the highest of the "low OPPs", 1 and 2. */
149 -#define SR_MAX_LOW_OPP 2
150 +#define SR_MAX_LOW_OPP 3
152 /* XXX: find more appropriate place for these once DVFS is in place */
153 extern u32 current_vdd1_opp;
154 --- kernel-maemo-2.6.28.orig/drivers/cpufreq/cpufreq.c
155 +++ kernel-maemo-2.6.28/drivers/cpufreq/cpufreq.c
158 * cpufreq_per_cpu_attr_write() / store_##file_name() - sysfs write access
160 -#define store_one(file_name, object) \
161 +#define store_one(file_name, object,ignore) \
162 static ssize_t store_##file_name \
163 (struct cpufreq_policy *policy, const char *buf, size_t count) \
165 @@ -479,15 +479,16 @@
166 ret = sscanf (buf, "%u", &new_policy.object); \
170 - ret = __cpufreq_set_policy(policy, &new_policy); \
171 + printk(KERN_DEBUG "cpufreq: request %u -> %u\n",policy->object,new_policy.object); \
172 + if (new_policy.object != ignore && new_policy.object >= 100000) \
173 + ret = __cpufreq_set_policy(policy, &new_policy); \
174 policy->user_policy.object = policy->object; \
176 return ret ? ret : count; \
179 -store_one(scaling_min_freq,min);
180 -store_one(scaling_max_freq,max);
181 +store_one(scaling_min_freq,min,600000);
182 +store_one(scaling_max_freq,max,600000);
185 * show_cpuinfo_cur_freq - current CPU frequency as detected by hardware
186 --- kernel-maemo-2.6.28.orig/Makefile
187 +++ kernel-maemo-2.6.28/Makefile
192 -EXTRAVERSION = .10maemo
193 +EXTRAVERSION = .10maemo-lv
194 NAME = Erotic Pickled Herring