summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rwxr-xr-xfirmware/target/coldfire/iaudio/x5/usb-x5.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/coldfire/iaudio/x5/usb-x5.c b/firmware/target/coldfire/iaudio/x5/usb-x5.c
index 4f305010e2..3bd1a7a458 100755
--- a/firmware/target/coldfire/iaudio/x5/usb-x5.c
+++ b/firmware/target/coldfire/iaudio/x5/usb-x5.c
@@ -23,10 +23,9 @@
23 23
24void usb_init_device(void) 24void usb_init_device(void)
25{ 25{
26 and_l(~0x00000010, &GPIO_OUT); /* Self powered */ 26 or_l(0x00800010, &GPIO_OUT); /* RESET deasserted, VBUS powered */
27 or_l(0x00800000, &GPIO_OUT); /* RESET deasserted */
28 or_l(0x00800010, &GPIO_FUNCTION);
29 or_l(0x00800010, &GPIO_ENABLE); 27 or_l(0x00800010, &GPIO_ENABLE);
28 or_l(0x00800010, &GPIO_FUNCTION);
30 29
31 or_l(0x00800000, &GPIO1_FUNCTION); /* USB detect */ 30 or_l(0x00800000, &GPIO1_FUNCTION); /* USB detect */
32} 31}