forked from len0rd/rockbox
another fix towards Ondio USB passthrough
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5070 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5cd074ecee
commit
8e6174c410
1 changed files with 4 additions and 1 deletions
|
|
@ -76,12 +76,15 @@ static void usb_enable(bool on)
|
||||||
if(on)
|
if(on)
|
||||||
{
|
{
|
||||||
or_b(0x20, &PADRL); /* enable USB */
|
or_b(0x20, &PADRL); /* enable USB */
|
||||||
|
and_b(~0x08, &PADRL); /* assert card detect */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
and_b(~0x20, &PADRL); /* disable USB */
|
and_b(~0x20, &PADRL); /* disable USB */
|
||||||
|
or_b(0x08, &PADRL); /* deassert card detect */
|
||||||
}
|
}
|
||||||
or_b(0x20, &PAIORL); /* output for USB enable */
|
PACR2 &= ~0x00C0; /* use PA3 as GPIO */
|
||||||
|
or_b(0x28, &PAIORL); /* output for USB enable and card detect */
|
||||||
#else /* standard HD Jukebox */
|
#else /* standard HD Jukebox */
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
if(read_hw_mask() & USB_ACTIVE_HIGH)
|
if(read_hw_mask() & USB_ACTIVE_HIGH)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue