1
0
Fork 0
forked from len0rd/rockbox

imx233: correctly restore auto slow on cpu frequency change

Change-Id: I3ba495488e20fdd19d391f84ff484c1ce305d11b
This commit is contained in:
Amaury Pouly 2012-12-29 01:35:50 +01:00
parent 2b1159dda0
commit 68ff43e94b

View file

@ -171,6 +171,7 @@ void set_cpu_frequency(long frequency)
cpu_frequency = frequency;
/* disable auto-slow (enable back afterwards) */
bool as = imx233_clkctrl_is_auto_slow_enabled();
imx233_clkctrl_enable_auto_slow(false);
/* go back to a known state in safe way:
* clk_p@24 MHz
@ -221,7 +222,7 @@ void set_cpu_frequency(long frequency)
}
/* enable auto slow again */
imx233_clkctrl_enable_auto_slow(true);
imx233_clkctrl_enable_auto_slow(as);
}
#endif