diff options
| author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-12-29 01:35:50 +0100 |
|---|---|---|
| committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-12-29 01:40:35 +0100 |
| commit | 68ff43e94b8666da1a93bc6019255104bf6affa1 (patch) | |
| tree | 9f598b461461675c2fe4871fc298747ebc48ef38 | |
| parent | 2b1159dda06b7c47e7c208a521c3ca8114da78a9 (diff) | |
| download | rockbox-68ff43e94b8666da1a93bc6019255104bf6affa1.zip rockbox-68ff43e94b8666da1a93bc6019255104bf6affa1.tar.gz rockbox-68ff43e94b8666da1a93bc6019255104bf6affa1.tar.bz2 rockbox-68ff43e94b8666da1a93bc6019255104bf6affa1.tar.xz | |
imx233: correctly restore auto slow on cpu frequency change
Change-Id: I3ba495488e20fdd19d391f84ff484c1ce305d11b
| -rw-r--r-- | firmware/target/arm/imx233/system-imx233.c | 3 |
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 1d75cd4..07ab62d 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) 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 |