summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2016-01-18 23:55:22 +0100
committerMichael Giacomelli <giac2000@hotmail.com>2016-01-18 23:55:22 +0100
commit7432af09580a2e88fbc47271b38d02dfc0c79837 (patch)
tree216e2b2553b422698745b095ade20ca6e22c362f
parent9f364a13c6e35393396e25a61918a445eab83d82 (diff)
downloadrockbox-7432af0.tar.gz
rockbox-7432af0.zip
Make sure the system is boosted before enabling USB hardware.
Change-Id: Ib44d29384f359dff24f0ce012667d9ce93328dc2
-rw-r--r--firmware/target/arm/as3525/usb-as3525.c7
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