summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/coldfire/mpio/hd200/usb-hd200.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/coldfire/mpio/hd200/usb-hd200.c b/firmware/target/coldfire/mpio/hd200/usb-hd200.c
index 8f348b8..b4ab8ba 100644
--- a/firmware/target/coldfire/mpio/hd200/usb-hd200.c
+++ b/firmware/target/coldfire/mpio/hd200/usb-hd200.c
@@ -32,7 +32,7 @@ void usb_init_device(void)
*/
and_l(~(1<<4), &GPIO1_OUT);
or_l((1<<4)|(1<<18), &GPIO1_ENABLE); /* GPIO36 GPIO50 */
- or_l((1<<4)|(1<<18), &GPIO1_FUNCTION);
+ or_l((1<<4)|(1<<5)|(1<<18), &GPIO1_FUNCTION); /* GPIO36 GPIO37 GPIO50 */
/* GPIO22 GPIO30*/
/* GPIO31 has to be low to ATA work */
@@ -76,6 +76,7 @@ void usb_enable(bool on)
and_l(~(1<<4),&GPIO1_OUT); /* GPIO36 low */
- //or_l((1<<18),&GPIO1_OUT); /* GPIO50 high */
+ while ( !(GPIO1_READ & (1<<5)) ) {}
+ sleep(HZ);
}
}