summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/system-target.h
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/system-target.h
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/system-target.h')
-rw-r--r--firmware/target/arm/imx233/system-target.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/system-target.h b/firmware/target/arm/imx233/system-target.h
index fd817a9950..29c175175b 100644
--- a/firmware/target/arm/imx233/system-target.h
+++ b/firmware/target/arm/imx233/system-target.h
@@ -28,9 +28,21 @@
#include "clock-target.h" /* CPUFREQ_* are defined here */
#include "power-imx233.h"
+/* Digital control */
#define HW_DIGCTL_BASE 0x8001C000
+#define HW_DIGCTL_CTRL (*(volatile uint32_t *)(HW_DIGCTL_BASE + 0))
+#define HW_DIGCTL_CTRL__USB_CLKGATE (1 << 2)
+
#define HW_DIGCTL_MICROSECONDS (*(volatile uint32_t *)(HW_DIGCTL_BASE + 0xC0))
+/* USB Phy */
+#define HW_USBPHY_BASE 0x8007C000
+#define HW_USBPHY_PWD (*(volatile uint32_t *)(HW_USBPHY_BASE + 0))
+#define HW_USBPHY_PWD__ALL (7 << 10 | 0xf << 17)
+
+#define HW_USBPHY_CTRL (*(volatile uint32_t *)(HW_USBPHY_BASE + 0x30))
+
+/* Interrupt collector */
#define HW_ICOLL_BASE 0x80000000
#define HW_ICOLL_VECTOR (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x0))
@@ -89,6 +101,8 @@ void udelay(unsigned us);
bool imx233_us_elapsed(uint32_t ref, unsigned us_delay);
void imx233_reset_block(volatile uint32_t *block_reg);
void power_off(void);
+void imx233_enable_usb_controller(bool enable);
+void imx233_enable_usb_phy(bool enable);
void udelay(unsigned usecs);