From 68ff43e94b8666da1a93bc6019255104bf6affa1 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 29 Dec 2012 01:35:50 +0100 Subject: imx233: correctly restore auto slow on cpu frequency change Change-Id: I3ba495488e20fdd19d391f84ff484c1ce305d11b --- firmware/target/arm/imx233/system-imx233.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/imx233') 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) 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 -- cgit v1.2.3