summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/clkctrl-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-08-29 16:30:49 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-08-30 01:10:36 +0200
commit51f63f0b2a54742a5e1deb4289befb28c7d69b6d (patch)
tree492e79a9f399c7903f0a964e73f0ff9675abaa91 /firmware/target/arm/imx233/clkctrl-imx233.c
parentdbe9436ff2143e032bce80b2bb2074ec7b438768 (diff)
downloadrockbox-51f63f0b2a54742a5e1deb4289befb28c7d69b6d.tar.gz
rockbox-51f63f0b2a54742a5e1deb4289befb28c7d69b6d.tar.bz2
rockbox-51f63f0b2a54742a5e1deb4289befb28c7d69b6d.zip
imx233: fix header, add emi function
Change-Id: I1030e94f0dad4b66646cafa20b61df8a5c7f9278
Diffstat (limited to 'firmware/target/arm/imx233/clkctrl-imx233.c')
-rw-r--r--firmware/target/arm/imx233/clkctrl-imx233.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/clkctrl-imx233.c b/firmware/target/arm/imx233/clkctrl-imx233.c
index a5fc706350..6a96f218be 100644
--- a/firmware/target/arm/imx233/clkctrl-imx233.c
+++ b/firmware/target/arm/imx233/clkctrl-imx233.c
@@ -150,7 +150,7 @@ void imx233_clkctrl_set_fractional_divisor(enum imx233_clock_t clk, int fracdiv)
if(fracdiv != 0)
*REG = fracdiv;
else
- *REG = HW_CLKCTRL_FRAC_XX__CLKGATEXX;;
+ *REG = HW_CLKCTRL_FRAC_XX__CLKGATEXX;
}
int imx233_clkctrl_get_fractional_divisor(enum imx233_clock_t clk)
@@ -260,6 +260,11 @@ bool imx233_clkctrl_is_auto_slow_monitor_enabled(enum imx233_as_monitor_t monito
return HW_CLKCTRL_HBUS & monitor;
}
+bool imx233_clkctrl_is_emi_sync_enabled(void)
+{
+ return !!(HW_CLKCTRL_EMI & HW_CLKCTRL_EMI__SYNC_MODE_EN);
+}
+
unsigned imx233_clkctrl_get_clock_freq(enum imx233_clock_t clk)
{
switch(clk)