1
0
Fork 0
forked from len0rd/rockbox

HD200 - fix random partition corruption on USB unplug (hopefully)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25807 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcin Bukat 2010-05-04 12:25:57 +00:00
parent 69fa42d905
commit 6a2b516f48

View file

@ -32,7 +32,7 @@ void usb_init_device(void)
*/
and_l(~(1<<4), &GPIO1_OUT);
or_l((1<<4)|(1<<18), &GPIO1_ENABLE); /* GPIO36 GPIO50 */
or_l((1<<4)|(1<<18), &GPIO1_FUNCTION);
or_l((1<<4)|(1<<5)|(1<<18), &GPIO1_FUNCTION); /* GPIO36 GPIO37 GPIO50 */
/* GPIO22 GPIO30*/
/* GPIO31 has to be low to ATA work */
@ -76,6 +76,7 @@ void usb_enable(bool on)
and_l(~(1<<4),&GPIO1_OUT); /* GPIO36 low */
//or_l((1<<18),&GPIO1_OUT); /* GPIO50 high */
while ( !(GPIO1_READ & (1<<5)) ) {}
sleep(HZ);
}
}