forked from len0rd/rockbox
imx233: correctly restore auto slow on cpu frequency change
Change-Id: I3ba495488e20fdd19d391f84ff484c1ce305d11b
This commit is contained in:
parent
2b1159dda0
commit
68ff43e94b
1 changed files with 2 additions and 1 deletions
|
@ -171,6 +171,7 @@ void set_cpu_frequency(long frequency)
|
||||||
|
|
||||||
cpu_frequency = frequency;
|
cpu_frequency = frequency;
|
||||||
/* disable auto-slow (enable back afterwards) */
|
/* disable auto-slow (enable back afterwards) */
|
||||||
|
bool as = imx233_clkctrl_is_auto_slow_enabled();
|
||||||
imx233_clkctrl_enable_auto_slow(false);
|
imx233_clkctrl_enable_auto_slow(false);
|
||||||
/* go back to a known state in safe way:
|
/* go back to a known state in safe way:
|
||||||
* clk_p@24 MHz
|
* clk_p@24 MHz
|
||||||
|
@ -221,7 +222,7 @@ void set_cpu_frequency(long frequency)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enable auto slow again */
|
/* enable auto slow again */
|
||||||
imx233_clkctrl_enable_auto_slow(true);
|
imx233_clkctrl_enable_auto_slow(as);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue