diff options
-rw-r--r-- | firmware/target/coldfire/iaudio/usb-iaudio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/coldfire/iaudio/usb-iaudio.c b/firmware/target/coldfire/iaudio/usb-iaudio.c index 036cd77828..f03942667d 100644 --- a/firmware/target/coldfire/iaudio/usb-iaudio.c +++ b/firmware/target/coldfire/iaudio/usb-iaudio.c | |||
@@ -26,9 +26,12 @@ | |||
26 | 26 | ||
27 | void usb_init_device(void) | 27 | void usb_init_device(void) |
28 | { | 28 | { |
29 | or_l(0x00800010, &GPIO_OUT); /* RESET deasserted, VBUS powered */ | 29 | and_l(~0x00800000, &GPIO_OUT); /* RESET asserted */ |
30 | or_l(0x00000010, &GPIO_OUT); /* bus powered */ | ||
30 | or_l(0x00800010, &GPIO_ENABLE); | 31 | or_l(0x00800010, &GPIO_ENABLE); |
31 | or_l(0x00800010, &GPIO_FUNCTION); | 32 | or_l(0x00800010, &GPIO_FUNCTION); |
33 | sleep(1); | ||
34 | or_l(0x00800000, &GPIO_OUT); /* RESET deasserted */ | ||
32 | 35 | ||
33 | or_l(0x00800000, &GPIO1_FUNCTION); /* USB detect */ | 36 | or_l(0x00800000, &GPIO1_FUNCTION); /* USB detect */ |
34 | } | 37 | } |