summaryrefslogtreecommitdiff
path: root/firmware
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 /firmware
parent9f364a13c6e35393396e25a61918a445eab83d82 (diff)
downloadrockbox-7432af09580a2e88fbc47271b38d02dfc0c79837.tar.gz
rockbox-7432af09580a2e88fbc47271b38d02dfc0c79837.zip
Make sure the system is boosted before enabling USB hardware.
Change-Id: Ib44d29384f359dff24f0ce012667d9ce93328dc2
Diffstat (limited to 'firmware')
-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;
33void usb_enable(bool on) 33void usb_enable(bool on)
34{ 34{
35#if defined(HAVE_USBSTACK) 35#if defined(HAVE_USBSTACK)
36 if (on) 36 if (on){
37 cpu_boost(1);
37 usb_core_init(); 38 usb_core_init();
38 else 39 } else {
39 usb_core_exit(); 40 usb_core_exit();
41 cpu_boost(0);
42 }
40#else 43#else
41 (void)on; 44 (void)on;
42#endif 45#endif