diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-11-10 20:26:01 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-11-10 20:26:01 +0000 |
commit | 780f79e7a4028a57e4bf591539a540dbfae2496d (patch) | |
tree | 48ddec4b94e11ebc545070b2af6f52144661bf3c /firmware/usb.c | |
parent | 270cb0b68172c740820f772563e66a79308e641e (diff) | |
download | rockbox-780f79e7a4028a57e4bf591539a540dbfae2496d.tar.gz rockbox-780f79e7a4028a57e4bf591539a540dbfae2496d.zip |
Removed the Gmini 120 and Gmini SP code. These ports are dead, unfortunately.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11504 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index a0ffef1011..bde9463a7a 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -131,30 +131,6 @@ void usb_enable(bool on) | |||
131 | or_b(0x08, &PADRL); /* deassert card detect */ | 131 | or_b(0x08, &PADRL); /* deassert card detect */ |
132 | } | 132 | } |
133 | or_b(0x28, &PAIORL); /* output for USB enable and card detect */ | 133 | or_b(0x28, &PAIORL); /* output for USB enable and card detect */ |
134 | #elif defined(USB_GMINISTYLE) | ||
135 | { | ||
136 | int smsc_ver = smsc_version(); | ||
137 | if (on) { | ||
138 | if (smsc_ver < 4) { | ||
139 | P6 &= ~0x04; | ||
140 | P10 &= ~0x20; | ||
141 | |||
142 | smsc_delay(); | ||
143 | |||
144 | P6 |= 0x08; | ||
145 | P10 |= 0x20; | ||
146 | |||
147 | smsc_delay(); | ||
148 | } | ||
149 | P6 |= 0x10; | ||
150 | } else { | ||
151 | P6 &= ~0x10; | ||
152 | if (smsc_ver < 4) { | ||
153 | P6 &= ~0x04; | ||
154 | P10 &= ~0x20; | ||
155 | } | ||
156 | } | ||
157 | } | ||
158 | #elif defined(USB_ISP1582) | 134 | #elif defined(USB_ISP1582) |
159 | /* TODO: Implement USB_ISP1582 */ | 135 | /* TODO: Implement USB_ISP1582 */ |
160 | (void) on; | 136 | (void) on; |
@@ -371,9 +347,6 @@ bool usb_detect(void) | |||
371 | #ifdef USB_PLAYERSTYLE | 347 | #ifdef USB_PLAYERSTYLE |
372 | current_status = (PADR & 0x8000)?false:true; | 348 | current_status = (PADR & 0x8000)?false:true; |
373 | #endif | 349 | #endif |
374 | #ifdef USB_GMINISTYLE | ||
375 | current_status = (P5 & 0x10)?true:false; | ||
376 | #endif | ||
377 | #ifdef USB_IPODSTYLE | 350 | #ifdef USB_IPODSTYLE |
378 | /* The following check is in the ipodlinux source, with the | 351 | /* The following check is in the ipodlinux source, with the |
379 | comment "USB2D_IDENT is bad" if USB2D_IDENT != 0x22FA05 */ | 352 | comment "USB2D_IDENT is bad" if USB2D_IDENT != 0x22FA05 */ |
@@ -395,18 +368,6 @@ static void usb_tick(void) | |||
395 | { | 368 | { |
396 | bool current_status; | 369 | bool current_status; |
397 | 370 | ||
398 | #ifdef USB_GMINISTYLE | ||
399 | /* Keep usb chip in usb state (?) */ | ||
400 | if (P5 & 0x10) { | ||
401 | if ((P10 & 0x20) == 0 || (P6 & 0x08) == 0) { | ||
402 | if (smsc_version() < 4) { | ||
403 | P6 |= 0x08; | ||
404 | P10 |= 0x20; | ||
405 | } | ||
406 | } | ||
407 | } | ||
408 | #endif | ||
409 | |||
410 | if(usb_monitor_enabled) | 371 | if(usb_monitor_enabled) |
411 | { | 372 | { |
412 | current_status = usb_detect(); | 373 | current_status = usb_detect(); |