diff options
author | Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com> | 2005-02-19 21:34:03 +0000 |
---|---|---|
committer | Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com> | 2005-02-19 21:34:03 +0000 |
commit | a3ed6e9c7a90cd5dcffed397c894e480672d667c (patch) | |
tree | bfe04a6aad8f8daa987b49fee195594ed0f49a45 /firmware/usb.c | |
parent | 8ec05779e3cb42654fd774906561d586b4f1095e (diff) |
Gmini
* advances in the handling of the smsc chip
* moved stuff to where it belongs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6023 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 1400805c33..6095bcd65e 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -349,6 +349,18 @@ static void usb_tick(void) { bool current_status; +#ifdef USB_GMINISTYLE + /* Keep usb chip in usb state (?) */ + if (P5 & 0x10) { + if ((P10 & 0x20) == 0 || (P6 & 0x08) == 0) { + if (smsc_version() < 4) { + P6 |= 0x08; + P10 |= 0x20; + } + } + } +#endif + if(usb_monitor_enabled) { current_status = usb_detect(); |