summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-12-29 01:35:50 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-12-29 01:40:35 +0100
commit68ff43e94b8666da1a93bc6019255104bf6affa1 (patch)
tree9f598b461461675c2fe4871fc298747ebc48ef38 /firmware
parent2b1159dda06b7c47e7c208a521c3ca8114da78a9 (diff)
downloadrockbox-68ff43e94b8666da1a93bc6019255104bf6affa1.tar.gz
rockbox-68ff43e94b8666da1a93bc6019255104bf6affa1.zip
imx233: correctly restore auto slow on cpu frequency change
Change-Id: I3ba495488e20fdd19d391f84ff484c1ce305d11b
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/imx233/system-imx233.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c
index 1d75cd4c9c..07ab62d680 100644
--- a/firmware/target/arm/imx233/system-imx233.c
+++ b/firmware/target/arm/imx233/system-imx233.c
@@ -171,6 +171,7 @@ void set_cpu_frequency(long frequency)
171 171
172 cpu_frequency = frequency; 172 cpu_frequency = frequency;
173 /* disable auto-slow (enable back afterwards) */ 173 /* disable auto-slow (enable back afterwards) */
174 bool as = imx233_clkctrl_is_auto_slow_enabled();
174 imx233_clkctrl_enable_auto_slow(false); 175 imx233_clkctrl_enable_auto_slow(false);
175 /* go back to a known state in safe way: 176 /* go back to a known state in safe way:
176 * clk_p@24 MHz 177 * clk_p@24 MHz
@@ -221,7 +222,7 @@ void set_cpu_frequency(long frequency)
221 } 222 }
222 223
223 /* enable auto slow again */ 224 /* enable auto slow again */
224 imx233_clkctrl_enable_auto_slow(true); 225 imx233_clkctrl_enable_auto_slow(as);
225} 226}
226#endif 227#endif
227 228