1
0
Fork 0
forked from len0rd/rockbox

Make USB on sansas more reliable (FS#10026). Both fixes by Toni Hellmann

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20344 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2009-03-17 20:24:55 +00:00
parent 1b3a96d21a
commit ac7c88b935
2 changed files with 2 additions and 1 deletions

View file

@ -410,7 +410,7 @@ void usb_drv_reset(void)
udelay(10);
outl(inl(0x70000028) | 0x800, 0x70000028);
outl(inl(0x70000028) & ~0x800, 0x70000028);
while (inl(0x70000028) & 0x80);
while ((inl(0x70000028) & 0x80) == 0);
#endif
}

View file

@ -106,6 +106,7 @@ void usb_init_device(void)
while ((inl(0x70000028) & 0x80) == 0);
outl(inl(0x70000028) | 0x2, 0x70000028);
udelay(100000);
XMB_RAM_CFG |= 0x47A;
/* Do one-time inits */
usb_drv_startup();