summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx233/system-imx233.c9
-rw-r--r--firmware/target/arm/imx233/system-target.h2
2 files changed, 9 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c
index 3f751a8aa5..44d6f0e7ad 100644
--- a/firmware/target/arm/imx233/system-imx233.c
+++ b/firmware/target/arm/imx233/system-imx233.c
@@ -192,7 +192,6 @@ void imx233_digctl_set_arm_cache_timings(unsigned timings)
192#endif 192#endif
193} 193}
194 194
195#ifdef HAVE_ADJUSTABLE_CPU_FREQ
196struct cpufreq_profile_t 195struct cpufreq_profile_t
197{ 196{
198 /* key */ 197 /* key */
@@ -219,7 +218,7 @@ static struct cpufreq_profile_t cpu_profiles[] =
219 218
220#define NR_CPU_PROFILES ((int)(sizeof(cpu_profiles)/sizeof(cpu_profiles[0]))) 219#define NR_CPU_PROFILES ((int)(sizeof(cpu_profiles)/sizeof(cpu_profiles[0])))
221 220
222void set_cpu_frequency(long frequency) 221void imx233_set_cpu_frequency(long frequency)
223{ 222{
224 /* don't change the frequency if it is useless (changes are expensive) */ 223 /* don't change the frequency if it is useless (changes are expensive) */
225 if(cpu_frequency == frequency) 224 if(cpu_frequency == frequency)
@@ -277,6 +276,12 @@ void set_cpu_frequency(long frequency)
277 /* update frequency */ 276 /* update frequency */
278 cpu_frequency = frequency; 277 cpu_frequency = frequency;
279} 278}
279
280#ifdef HAVE_ADJUSTABLE_CPU_FREQ
281void set_cpu_frequency(long frequency)
282{
283 return imx233_set_cpu_frequency(frequency);
284}
280#endif 285#endif
281 286
282void imx233_enable_usb_controller(bool enable) 287void imx233_enable_usb_controller(bool enable)
diff --git a/firmware/target/arm/imx233/system-target.h b/firmware/target/arm/imx233/system-target.h
index 407369af7e..33e8f12265 100644
--- a/firmware/target/arm/imx233/system-target.h
+++ b/firmware/target/arm/imx233/system-target.h
@@ -53,6 +53,8 @@ void imx233_reset_block(volatile uint32_t *block_reg);
53void power_off(void); 53void power_off(void);
54void imx233_enable_usb_controller(bool enable); 54void imx233_enable_usb_controller(bool enable);
55void imx233_enable_usb_phy(bool enable); 55void imx233_enable_usb_phy(bool enable);
56// NOTE: this is available even if HAVE_ADJUSTABLE_CPU_FREQ is undef
57void imx233_set_cpu_frequency(long frequency);
56 58
57void udelay(unsigned usecs); 59void udelay(unsigned usecs);
58 60