From a3ed6e9c7a90cd5dcffed397c894e480672d667c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bernardy Date: Sat, 19 Feb 2005 21:34:03 +0000 Subject: 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 --- firmware/usb.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'firmware/usb.c') diff --git a/firmware/usb.c b/firmware/usb.c index 1400805..6095bcd 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(); -- cgit v1.1