summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/clkctrl-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-08-30 20:57:42 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-08-30 20:57:42 +0200
commit13912fa1deff7cd22bd0dbfd2c92f4f88d651aae (patch)
tree21461256faaeb0638d05441a77a4314ef30af0ce /firmware/target/arm/imx233/clkctrl-imx233.c
parentc9ad8688f16a271e0ab2f0cd26dc2f9ac89625c3 (diff)
downloadrockbox-13912fa1deff7cd22bd0dbfd2c92f4f88d651aae.tar.gz
rockbox-13912fa1deff7cd22bd0dbfd2c92f4f88d651aae.tar.bz2
rockbox-13912fa1deff7cd22bd0dbfd2c92f4f88d651aae.zip
imx233: fix clktrl auto slow function
Change-Id: I6c004836562b0605530ac334434b17afa89ebad5
Diffstat (limited to 'firmware/target/arm/imx233/clkctrl-imx233.c')
-rw-r--r--firmware/target/arm/imx233/clkctrl-imx233.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/clkctrl-imx233.c b/firmware/target/arm/imx233/clkctrl-imx233.c
index 6a96f218be..7b4869c749 100644
--- a/firmware/target/arm/imx233/clkctrl-imx233.c
+++ b/firmware/target/arm/imx233/clkctrl-imx233.c
@@ -237,9 +237,9 @@ enum imx233_as_div_t imx233_clkctrl_get_auto_slow_divisor(void)
void imx233_clkctrl_enable_auto_slow(bool enable)
{
if(enable)
- __REG_CLR(HW_CLKCTRL_HBUS) = HW_CLKCTRL_HBUS__AUTO_SLOW_MODE;
- else
__REG_SET(HW_CLKCTRL_HBUS) = HW_CLKCTRL_HBUS__AUTO_SLOW_MODE;
+ else
+ __REG_CLR(HW_CLKCTRL_HBUS) = HW_CLKCTRL_HBUS__AUTO_SLOW_MODE;
}
bool imx233_clkctrl_is_auto_slow_enabled(void)