FS#11085 - Use audio master irq_enrd0 usb_status bit instead of gpio on C200V2

Attached to Project: Rockbox
Opened by Tobias Diedrich (ranma) - Monday, 08 March 2010, 17:11 GMT
Last edited by Rafaël Carré (funman) - Tuesday, 09 March 2010, 16:29 GMT
Task Type Patches
Category Bootloader
Status Closed
Assigned To No-one
Operating System Sansa c200
Severity Low
Priority Normal
Reported Version Release 3.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


It looks like the usb status is not routed to one of the GPIO pins on my C200V2 submodel,
use audio master i2c to read the irq_enrd0 usb_status bit instead.
This task depends upon

Closed by  Rafaël Carré (funman)
Tuesday, 09 March 2010, 16:29 GMT
Reason for closing:  Accepted
Additional comments about closing:  r25088
Comment by Tobias Diedrich (ranma) - Monday, 08 March 2010, 17:16 GMT
Boottested on my C240v2, boots into OF or rockbox according to wether USB is connected or not.
Comment by Rafaël Carré (funman) - Monday, 08 March 2010, 17:24 GMT
thanks, will report when I tested on my devices so we can enable it on those as well

nitpick : prescaler is only 10 bits so the HIGH part is 2 bits
Comment by Tobias Diedrich (ranma) - Tuesday, 09 March 2010, 07:10 GMT
#error prescaler to big!