mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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
This commit is contained in:
parent
8d21fc9229
commit
91b850ec42
5 changed files with 6 additions and 17 deletions
|
|
@ -108,7 +108,7 @@
|
|||
static void usb_reset_controller(void)
|
||||
{
|
||||
/* enable usb module */
|
||||
outl(inl(0x7000002C) | 0x3000000, 0x7000002C);
|
||||
outl(inl(0x7000002C) | 0x3000000, 0x7000002C);
|
||||
|
||||
DEV_EN |= DEV_USB0;
|
||||
DEV_EN |= DEV_USB1;
|
||||
|
|
@ -197,7 +197,11 @@ void usb_enable(bool on)
|
|||
|
||||
void usb_attach(void)
|
||||
{
|
||||
usb_drv_attach();
|
||||
#if defined(IPOD_VIDEO)
|
||||
/* FIXME: Some iPod Video's need this 2nd call of usb_drv_init() to establish
|
||||
* an USB connection. */
|
||||
usb_drv_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool usb_plugged(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue