summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/clkctrl-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-10-18 22:00:50 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-10-18 22:00:50 +0000
commitd0e8c35862d977aa328a45889a17cab4b6f85878 (patch)
tree038aef4de2fea3a668bb8f9dc0ef6d45c4de097a /firmware/target/arm/imx233/clkctrl-imx233.c
parent0b3347e47f8b6a1d81b4d6cf83178a017db5b1f0 (diff)
imx233/fuze+: move to a more generic xtal derived clock enabling function, fix timrot accordingly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30793 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/clkctrl-imx233.c')
-rw-r--r--firmware/target/arm/imx233/clkctrl-imx233.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/clkctrl-imx233.c b/firmware/target/arm/imx233/clkctrl-imx233.c
index 976a9f9d3b..31fccd3e3b 100644
--- a/firmware/target/arm/imx233/clkctrl-imx233.c
+++ b/firmware/target/arm/imx233/clkctrl-imx233.c
@@ -23,12 +23,12 @@
#define __CLK_CLKGATE (1 << 31)
#define __CLK_BUSY (1 << 29)
-void imx233_enable_timrot_xtal_clk32k(bool enable)
+void imx233_enable_xtal_clock(enum imx233_xtal_clkt_t xtal_clk, bool enable)
{
if(enable)
- __REG_CLR(HW_CLKCTRL_XTAL) = HW_CLKCTRL_XTAL__TIMROT_CLK32K_GATE;
+ __REG_CLR(HW_CLKCTRL_XTAL) = xtal_clk;
else
- __REG_SET(HW_CLKCTRL_XTAL) = HW_CLKCTRL_XTAL__TIMROT_CLK32K_GATE;
+ __REG_SET(HW_CLKCTRL_XTAL) = xtal_clk;
}
void imx233_enable_clock(enum imx233_clock_t clk, bool enable)