diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2016-01-18 23:55:22 +0100 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2016-01-18 23:55:22 +0100 |
commit | 7432af09580a2e88fbc47271b38d02dfc0c79837 (patch) | |
tree | 216e2b2553b422698745b095ade20ca6e22c362f | |
parent | 9f364a13c6e35393396e25a61918a445eab83d82 (diff) |
Make sure the system is boosted before enabling USB hardware.
Change-Id: Ib44d29384f359dff24f0ce012667d9ce93328dc2
-rw-r--r-- | firmware/target/arm/as3525/usb-as3525.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c index d9fb1fdfec..4e63054f46 100644 --- a/firmware/target/arm/as3525/usb-as3525.c +++ b/firmware/target/arm/as3525/usb-as3525.c @@ -33,10 +33,13 @@ static int usb_status = USB_EXTRACTED; void usb_enable(bool on) { #if defined(HAVE_USBSTACK) - if (on) + if (on){ + cpu_boost(1); usb_core_init(); - else + } else { usb_core_exit(); + cpu_boost(0); + } #else (void)on; #endif |