summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/clkctrl-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 20:54:41 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-17 00:29:24 +0200
commit2d0d752bf8aed6bf91cdabd0d4571f336e7370eb (patch)
treee2e0cc39fe0e60f4096e1d4fe23e4e652bbe7f37 /firmware/target/arm/imx233/clkctrl-imx233.h
parent023621d4018d2f08a8cebb805270cf9e945a645a (diff)
downloadrockbox-2d0d752bf8aed6bf91cdabd0d4571f336e7370eb.tar.gz
rockbox-2d0d752bf8aed6bf91cdabd0d4571f336e7370eb.tar.bz2
rockbox-2d0d752bf8aed6bf91cdabd0d4571f336e7370eb.zip
imx233: fix clkctrl for stmp3600 and stmp3700
Change-Id: I7596e41c0d0b7fdcc18f7d328a0927c2c78dc4cb
Diffstat (limited to 'firmware/target/arm/imx233/clkctrl-imx233.h')
-rw-r--r--firmware/target/arm/imx233/clkctrl-imx233.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/clkctrl-imx233.h b/firmware/target/arm/imx233/clkctrl-imx233.h
index ddd8bc9221..7dc21c2b30 100644
--- a/firmware/target/arm/imx233/clkctrl-imx233.h
+++ b/firmware/target/arm/imx233/clkctrl-imx233.h
@@ -41,9 +41,8 @@ static inline void core_sleep(void)
enum imx233_clock_t
{
- CLK_PIX, /* freq, div, frac, bypass, enable */
CLK_SSP, /* freq, div, bypass, enable */
- CLK_IO, /* freq, frac */
+ CLK_IO, /* freq, frac (stmp3700+) */
CLK_CPU, /* freq, div, frac, bypass */
CLK_HBUS, /* freq, div, frac */
CLK_PLL, /* freq, enable */
@@ -55,6 +54,9 @@ enum imx233_clock_t
CLK_PWM, /* enable */
CLK_TIMROT, /* enable */
CLK_UART, /* enable */
+#if IMX233_SUBTARGET >= 3700
+ CLK_PIX, /* freq, div, frac, bypass, enable */
+#endif
};
void imx233_clkctrl_init(void);
@@ -63,12 +65,14 @@ void imx233_clkctrl_enable(enum imx233_clock_t clk, bool enable);
bool imx233_clkctrl_is_enabled(enum imx233_clock_t cl);
void imx233_clkctrl_set_div(enum imx233_clock_t clk, int div);
int imx233_clkctrl_get_div(enum imx233_clock_t clk);
+#if IMX233_SUBTARGET >= 3700
/* call with fracdiv=0 to disable it */
void imx233_clkctrl_set_frac_div(enum imx233_clock_t clk, int fracdiv);
/* 0 means fractional dividor disable */
int imx233_clkctrl_get_frac_div(enum imx233_clock_t clk);
void imx233_clkctrl_set_bypass(enum imx233_clock_t clk, bool bypass);
bool imx233_clkctrl_get_bypass(enum imx233_clock_t clk);
+#endif
void imx233_clkctrl_enable_usb(bool enable);
bool imx233_clkctrl_is_usb_enabled(void);
/* returns frequency in KHz */