summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/clkctrl-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 13:16:17 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 16:10:51 +0200
commit553aeae9c63f789c969a954983e537244934903a (patch)
tree13a36bf8dc86d77b4ff5d7f6127b1df1c5c3e633 /firmware/target/arm/imx233/clkctrl-imx233.h
parent9022c69b646b43d7bd5ee2948f6abb9f51459aea (diff)
downloadrockbox-553aeae9c63f789c969a954983e537244934903a.tar.gz
rockbox-553aeae9c63f789c969a954983e537244934903a.tar.bz2
rockbox-553aeae9c63f789c969a954983e537244934903a.zip
imx233: fix clkctrl naming
Move to a more consistent naming convention like the other devices Change-Id: I4ddbbee27ee9f5ae775c5776592ec7ce02b30948
Diffstat (limited to 'firmware/target/arm/imx233/clkctrl-imx233.h')
-rw-r--r--firmware/target/arm/imx233/clkctrl-imx233.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/firmware/target/arm/imx233/clkctrl-imx233.h b/firmware/target/arm/imx233/clkctrl-imx233.h
index ae2e0465a0..d49e8b2802 100644
--- a/firmware/target/arm/imx233/clkctrl-imx233.h
+++ b/firmware/target/arm/imx233/clkctrl-imx233.h
@@ -132,6 +132,7 @@ enum imx233_xtal_clk_t
XTAL_FILT = 1 << 30,
XTAL_DRI = 1 << 28,
XTAL_TIMROT = 1 << 26,
+ XTAM_PWM = 1 << 29,
};
/* Auto-Slow monitoring */
@@ -158,28 +159,28 @@ enum imx233_as_div_t
};
/* can use a mask of clocks */
-void imx233_enable_xtal_clock(enum imx233_xtal_clk_t xtal_clk, bool enable);
-bool imx233_is_xtal_clock_enable(enum imx233_xtal_clk_t clk);
+void imx233_clkctrl_enable_xtal(enum imx233_xtal_clk_t xtal_clk, bool enable);
+void imx233_clkctrl_is_xtal_enabled(enum imx233_xtal_clk_t xtal_clk, bool enable);
/* only use it for non-fractional clocks (ie not for IO) */
-void imx233_enable_clock(enum imx233_clock_t clk, bool enable);
-bool imx233_is_clock_enable(enum imx233_clock_t cl);
-void imx233_set_clock_divisor(enum imx233_clock_t clk, int div);
-int imx233_get_clock_divisor(enum imx233_clock_t clk);
+void imx233_clkctrl_enable_clock(enum imx233_clock_t clk, bool enable);
+bool imx233_clkctrl_is_clock_enabled(enum imx233_clock_t cl);
+void imx233_clkctrl_set_clock_divisor(enum imx233_clock_t clk, int div);
+int imx233_clkctrl_get_clock_divisor(enum imx233_clock_t clk);
/* call with fracdiv=0 to disable it */
-void imx233_set_fractional_divisor(enum imx233_clock_t clk, int fracdiv);
+void imx233_clkctrl_set_fractional_divisor(enum imx233_clock_t clk, int fracdiv);
/* 0 means fractional dividor disable */
-int imx233_get_fractional_divisor(enum imx233_clock_t clk);
-void imx233_set_bypass_pll(enum imx233_clock_t clk, bool bypass);
-bool imx233_get_bypass_pll(enum imx233_clock_t clk);
-void imx233_enable_usb_pll(bool enable);
-bool imx233_is_usb_pll_enable(void);
-unsigned imx233_get_clock_freq(enum imx233_clock_t clk);
-
-void imx233_set_auto_slow_divisor(enum imx233_as_div_t div);
-enum imx233_as_div_t imx233_get_auto_slow_divisor(void);
-void imx233_enable_auto_slow(bool enable);
-bool imx233_is_auto_slow_enable(void);
-void imx233_enable_auto_slow_monitor(enum imx233_as_monitor_t monitor, bool enable);
-bool imx233_is_auto_slow_monitor_enable(enum imx233_as_monitor_t monitor);
+int imx233_clkctrl_get_fractional_divisor(enum imx233_clock_t clk);
+void imx233_clkctrl_set_bypass_pll(enum imx233_clock_t clk, bool bypass);
+bool imx233_clkctrl_get_bypass_pll(enum imx233_clock_t clk);
+void imx233_clkctrl_enable_usb_pll(bool enable);
+bool imx233_clkctrl_is_usb_pll_enabled(void);
+unsigned imx233_clkctrl_get_clock_freq(enum imx233_clock_t clk);
+
+void imx233_clkctrl_set_auto_slow_divisor(enum imx233_as_div_t div);
+enum imx233_as_div_t imx233_clkctrl_get_auto_slow_divisor(void);
+void imx233_clkctrl_enable_auto_slow(bool enable);
+bool imx233_clkctrl_is_auto_slow_enabled(void);
+void imx233_clkctrl_enable_auto_slow_monitor(enum imx233_as_monitor_t monitor, bool enable);
+bool imx233_clkctrl_is_auto_slow_monitor_enabled(enum imx233_as_monitor_t monitor);
#endif /* CLKCTRL_IMX233_H */