diff options
Diffstat (limited to 'firmware/target/arm/pp/usb-fw-pp502x.c')
-rw-r--r-- | firmware/target/arm/pp/usb-fw-pp502x.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/target/arm/pp/usb-fw-pp502x.c b/firmware/target/arm/pp/usb-fw-pp502x.c index 010cdb718c..44cce14389 100644 --- a/firmware/target/arm/pp/usb-fw-pp502x.c +++ b/firmware/target/arm/pp/usb-fw-pp502x.c | |||
@@ -108,7 +108,7 @@ | |||
108 | static void usb_reset_controller(void) | 108 | static void usb_reset_controller(void) |
109 | { | 109 | { |
110 | /* enable usb module */ | 110 | /* enable usb module */ |
111 | outl(inl(0x7000002C) | 0x3000000, 0x7000002C); | 111 | outl(inl(0x7000002C) | 0x3000000, 0x7000002C); |
112 | 112 | ||
113 | DEV_EN |= DEV_USB0; | 113 | DEV_EN |= DEV_USB0; |
114 | DEV_EN |= DEV_USB1; | 114 | DEV_EN |= DEV_USB1; |
@@ -197,7 +197,11 @@ void usb_enable(bool on) | |||
197 | 197 | ||
198 | void usb_attach(void) | 198 | void usb_attach(void) |
199 | { | 199 | { |
200 | usb_drv_attach(); | 200 | #if defined(IPOD_VIDEO) |
201 | /* FIXME: Some iPod Video's need this 2nd call of usb_drv_init() to establish | ||
202 | * an USB connection. */ | ||
203 | usb_drv_init(); | ||
204 | #endif | ||
201 | } | 205 | } |
202 | 206 | ||
203 | bool usb_plugged(void) | 207 | bool usb_plugged(void) |