diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/usb-fw-pp502x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index aa557cbbeb..8d3237c0f5 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c | |||
@@ -48,7 +48,7 @@ void usb_init_device(void) | |||
48 | 48 | ||
49 | while ((inl(0x70000028) & 0x80) == 0); | 49 | while ((inl(0x70000028) & 0x80) == 0); |
50 | outl(inl(0x70000028) | 0x2, 0x70000028); | 50 | outl(inl(0x70000028) | 0x2, 0x70000028); |
51 | udelay(0x186A0); | 51 | udelay(100000); |
52 | 52 | ||
53 | /* disable USB-devices until USB is detected via GPIO */ | 53 | /* disable USB-devices until USB is detected via GPIO */ |
54 | DEV_EN &= ~DEV_USB0; | 54 | DEV_EN &= ~DEV_USB0; |
@@ -68,9 +68,7 @@ void usb_enable(bool on) | |||
68 | if (on) { | 68 | if (on) { |
69 | /* if USB is detected, re-enable the USB-devices, otherwise make sure it's disabled */ | 69 | /* if USB is detected, re-enable the USB-devices, otherwise make sure it's disabled */ |
70 | DEV_EN |= DEV_USB0; | 70 | DEV_EN |= DEV_USB0; |
71 | DEV_RS &=~DEV_USB0; | ||
72 | DEV_EN |= DEV_USB1; | 71 | DEV_EN |= DEV_USB1; |
73 | DEV_RS &=~DEV_USB1; | ||
74 | DEV_INIT2 |= INIT_USB; | 72 | DEV_INIT2 |= INIT_USB; |
75 | usb_core_init(); | 73 | usb_core_init(); |
76 | } | 74 | } |