summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/clkctrl-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-09-14 11:50:06 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-09-14 11:50:06 +0000
commitb25d6e0c964f80dc85434aced42b6fd39c974cf5 (patch)
tree64667274d02b338e1410bb1828e9fdd091ede55c /firmware/target/arm/imx233/clkctrl-imx233.c
parent4f27931a583fc4b01054fc143e5a88064f9d6847 (diff)
downloadrockbox-b25d6e0c964f80dc85434aced42b6fd39c974cf5.tar.gz
rockbox-b25d6e0c964f80dc85434aced42b6fd39c974cf5.tar.bz2
rockbox-b25d6e0c964f80dc85434aced42b6fd39c974cf5.zip
imx233/fuze+: implement usb enable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30542 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/clkctrl-imx233.c')
-rw-r--r--firmware/target/arm/imx233/clkctrl-imx233.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/clkctrl-imx233.c b/firmware/target/arm/imx233/clkctrl-imx233.c
index ee77a77493..976a9f9d3b 100644
--- a/firmware/target/arm/imx233/clkctrl-imx233.c
+++ b/firmware/target/arm/imx233/clkctrl-imx233.c
@@ -118,3 +118,11 @@ void imx233_set_bypass_pll(enum imx233_clock_t clk, bool bypass)
__REG_CLR(HW_CLKCTRL_CLKSEQ) = msk;
}
+void imx233_enable_usb_pll(bool enable)
+{
+ if(enable)
+ __REG_SET(HW_CLKCTRL_PLLCTRL0) = HW_CLKCTRL_PLLCTRL0__EN_USB_CLKS;
+ else
+ __REG_CLR(HW_CLKCTRL_PLLCTRL0) = HW_CLKCTRL_PLLCTRL0__EN_USB_CLKS;
+}
+