diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-05-14 22:13:38 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-05-14 22:13:38 -0400 |
commit | 91b850ec425545d52d25c5b0f9a2caf6f853dfb7 (patch) | |
tree | 7b10cc1d7c165b78f73aa4a202230fad69144f65 /firmware/target/arm/pp | |
parent | 8d21fc9229eff863437cd45f9b833ede26792a73 (diff) | |
download | rockbox-91b850ec425545d52d25c5b0f9a2caf6f853dfb7.tar.gz rockbox-91b850ec425545d52d25c5b0f9a2caf6f853dfb7.zip |
Get rid of usb_drv_attach() from USB code.
'Twas an idiosyncrasy of detecting a host upon bus reset, which is
obsolete.
Change-Id: I0adb25e1805022544f52cd0cb766819a367dbde4
Diffstat (limited to 'firmware/target/arm/pp')
-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) |