diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/imx233/system-imx233.c | 9 | ||||
-rw-r--r-- | firmware/target/arm/imx233/system-target.h | 2 |
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 | ||
196 | struct cpufreq_profile_t | 195 | struct 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 | ||
222 | void set_cpu_frequency(long frequency) | 221 | void 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 | ||
281 | void set_cpu_frequency(long frequency) | ||
282 | { | ||
283 | return imx233_set_cpu_frequency(frequency); | ||
284 | } | ||
280 | #endif | 285 | #endif |
281 | 286 | ||
282 | void imx233_enable_usb_controller(bool enable) | 287 | void 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); | |||
53 | void power_off(void); | 53 | void power_off(void); |
54 | void imx233_enable_usb_controller(bool enable); | 54 | void imx233_enable_usb_controller(bool enable); |
55 | void imx233_enable_usb_phy(bool enable); | 55 | void imx233_enable_usb_phy(bool enable); |
56 | // NOTE: this is available even if HAVE_ADJUSTABLE_CPU_FREQ is undef | ||
57 | void imx233_set_cpu_frequency(long frequency); | ||
56 | 58 | ||
57 | void udelay(unsigned usecs); | 59 | void udelay(unsigned usecs); |
58 | 60 | ||