forked from len0rd/rockbox
Add a higher level USB detection that prevents fraudulent bus resets from causing USB mode to be entered. Enable for SA9200 only at this time. Also, for SA9200, use the bus power GPIO rather than the 'connector inserted' GPIO to detect the cable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29068 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bcc0f88372
commit
05f6f3419a
7 changed files with 43 additions and 18 deletions
|
|
@ -33,10 +33,11 @@
|
|||
enum {
|
||||
USB_EXTRACTED = 0, /* Event+State */
|
||||
USB_INSERTED, /* Event+State */
|
||||
#if defined(HAVE_USB_POWER) || defined(USB_DETECT_BY_DRV)
|
||||
#if defined(HAVE_USB_POWER) || defined(USB_DETECT_BY_DRV) || \
|
||||
defined(USB_DETECT_BY_CORE)
|
||||
USB_POWERED, /* Event+State */
|
||||
#endif
|
||||
#ifdef USB_DETECT_BY_DRV
|
||||
#if defined(USB_DETECT_BY_DRV) || defined(USB_DETECT_BY_CORE)
|
||||
USB_UNPOWERED, /* Event */
|
||||
#endif
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue