summaryrefslogtreecommitdiff
path: root/firmware/target/arm/usb-s3c6400x.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/usb-s3c6400x.c')
-rw-r--r--firmware/target/arm/usb-s3c6400x.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c
index 23347ccf83..e94c54f086 100644
--- a/firmware/target/arm/usb-s3c6400x.c
+++ b/firmware/target/arm/usb-s3c6400x.c
@@ -403,6 +403,14 @@ void usb_init_device(void)
403 unsigned int i; 403 unsigned int i;
404 for (i = 0; i < sizeof(endpoints)/sizeof(struct ep_type); i++) 404 for (i = 0; i < sizeof(endpoints)/sizeof(struct ep_type); i++)
405 wakeup_init(&endpoints[i].complete); 405 wakeup_init(&endpoints[i].complete);
406
407 /* Power up the core clocks to allow writing
408 to some registers needed to power it down */
409 PWRCON &= ~0x4000;
410 PWRCONEXT &= ~0x800;
411 PCGCCTL = 0;
412 INTMSK |= INTMSK_USB_OTG;
413
406 usb_drv_exit(); 414 usb_drv_exit();
407} 415}
408 416