Ondio USB enable, ATA part of it is missing by now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5064 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
66b45eeb59
commit
b26f6e05f8
3 changed files with 18 additions and 0 deletions
|
@ -46,6 +46,9 @@
|
|||
/* How to detect USB */
|
||||
#define USB_FMRECORDERSTYLE 1 /* like FM, on AN1 */
|
||||
|
||||
/* How to enable USB */
|
||||
#define USB_ENABLE_ONDIOSTYLE 1 /* with PA5 */
|
||||
|
||||
/* The start address index for ROM builds */
|
||||
#define ROM_START 0x12010 /* don't know yet */
|
||||
|
||||
|
|
|
@ -46,6 +46,9 @@
|
|||
/* How to detect USB */
|
||||
#define USB_FMRECORDERSTYLE 1 /* like FM, on AN1 */
|
||||
|
||||
/* How to enable USB */
|
||||
#define USB_ENABLE_ONDIOSTYLE 1 /* with PA5 */
|
||||
|
||||
/* The start address index for ROM builds */
|
||||
#define ROM_START 0x12010 /* don't know yet */
|
||||
|
||||
|
|
|
@ -77,6 +77,17 @@ static void usb_enable(bool on)
|
|||
on = !on;
|
||||
#endif
|
||||
|
||||
#ifdef USB_ENABLE_ONDIOSTYLE
|
||||
if(on)
|
||||
{
|
||||
or_b(0x20, &PADRL); /* enable USB */
|
||||
}
|
||||
else
|
||||
{
|
||||
and_b(~0x20, &PADRL);
|
||||
}
|
||||
or_b(0x20, &PAIORL);
|
||||
#else /* standard HD Jukebox */
|
||||
if(on)
|
||||
{
|
||||
and_b(~0x04, &PADRH); /* enable USB */
|
||||
|
@ -86,6 +97,7 @@ static void usb_enable(bool on)
|
|||
or_b(0x04, &PADRH);
|
||||
}
|
||||
or_b(0x04, &PAIORH);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void usb_slave_mode(bool on)
|
||||
|
|
Loading…
Reference in a new issue