diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-22 00:16:22 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-22 00:16:22 +0200 |
commit | 3d1666042ebd1c7c5f0cba5e721d2a62fb03771b (patch) | |
tree | 3c9570d9707fed8f846c01eb574acee902b7d3cb /firmware/target | |
parent | 151fa30257c426e410293897f946b32d68e24897 (diff) | |
download | rockbox-3d1666042ebd1c7c5f0cba5e721d2a62fb03771b.tar.gz rockbox-3d1666042ebd1c7c5f0cba5e721d2a62fb03771b.zip |
imx233/system: don't do frequency management on < stmp3780, it's not working
Change-Id: Ie9ff5122f1cb4fe3809bb4c6b88ef0cfc353e0e1
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/imx233/system-imx233.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c index 44d6f0e7ad..3293bd71d1 100644 --- a/firmware/target/arm/imx233/system-imx233.c +++ b/firmware/target/arm/imx233/system-imx233.c | |||
@@ -204,6 +204,7 @@ struct cpufreq_profile_t | |||
204 | int arm_cache_timings; | 204 | int arm_cache_timings; |
205 | }; | 205 | }; |
206 | 206 | ||
207 | #if IMX233_SUBTARGET >= 3780 | ||
207 | static struct cpufreq_profile_t cpu_profiles[] = | 208 | static struct cpufreq_profile_t cpu_profiles[] = |
208 | { | 209 | { |
209 | /* clk_p@454.74 MHz, clk_h@130.91 MHz, clk_emi@130.91 MHz, VDDD@1.550 V */ | 210 | /* clk_p@454.74 MHz, clk_h@130.91 MHz, clk_emi@130.91 MHz, VDDD@1.550 V */ |
@@ -215,11 +216,13 @@ static struct cpufreq_profile_t cpu_profiles[] = | |||
215 | /* dummy */ | 216 | /* dummy */ |
216 | {0, 0, 0, 0, 0, 0, 0, 0} | 217 | {0, 0, 0, 0, 0, 0, 0, 0} |
217 | }; | 218 | }; |
219 | #endif | ||
218 | 220 | ||
219 | #define NR_CPU_PROFILES ((int)(sizeof(cpu_profiles)/sizeof(cpu_profiles[0]))) | 221 | #define NR_CPU_PROFILES ((int)(sizeof(cpu_profiles)/sizeof(cpu_profiles[0]))) |
220 | 222 | ||
221 | void imx233_set_cpu_frequency(long frequency) | 223 | void imx233_set_cpu_frequency(long frequency) |
222 | { | 224 | { |
225 | #if IMX233_SUBTARGET >= 3780 | ||
223 | /* don't change the frequency if it is useless (changes are expensive) */ | 226 | /* don't change the frequency if it is useless (changes are expensive) */ |
224 | if(cpu_frequency == frequency) | 227 | if(cpu_frequency == frequency) |
225 | return; | 228 | return; |
@@ -275,6 +278,9 @@ void imx233_set_cpu_frequency(long frequency) | |||
275 | imx233_clkctrl_enable_auto_slow(true); | 278 | imx233_clkctrl_enable_auto_slow(true); |
276 | /* update frequency */ | 279 | /* update frequency */ |
277 | cpu_frequency = frequency; | 280 | cpu_frequency = frequency; |
281 | #else | ||
282 | (void) frequency; | ||
283 | #endif | ||
278 | } | 284 | } |
279 | 285 | ||
280 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 286 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |