From 207131c53b15e7b5956177e90932b7445ff5b4ce Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 14 Sep 2011 14:05:07 +0000 Subject: Convert ARC USB driver code to always use setup packet detection and remove the bus-reset-based detection method for it. This prevents false USB detection from chargers or other accesories that aren't actually a host but can trigger the bus reset condition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30546 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/config.h b/firmware/export/config.h index 8addb62e95..e6a87915fc 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -736,7 +736,7 @@ Lyre prototype 1 */ /* Priority in bootloader is wanted */ #define HAVE_PRIORITY_SCHEDULING #define USB_STATUS_BY_EVENT -#define USB_DETECT_BY_DRV +#define USB_DETECT_BY_CORE #if defined(HAVE_USBSTACK) && CONFIG_USBOTG == USBOTG_ARC #define INCLUDE_TIMEOUT_API #endif @@ -763,7 +763,7 @@ Lyre prototype 1 */ #ifdef HAVE_USBSTACK #if CONFIG_USBOTG == USBOTG_ARC #define USB_STATUS_BY_EVENT -#define USB_DETECT_BY_DRV +#define USB_DETECT_BY_CORE #define INCLUDE_TIMEOUT_API #elif CONFIG_USBOTG == USBOTG_AS3525 #define USB_STATUS_BY_EVENT @@ -779,12 +779,6 @@ Lyre prototype 1 */ #endif /* BOOTLOADER */ -#ifdef PHILIPS_SA9200 -/* Instead use the request for a device descriptor to detect a host */ -#undef USB_DETECT_BY_DRV -#define USB_DETECT_BY_CORE -#endif - #if defined(HAVE_USBSTACK) || (CONFIG_CPU == JZ4732) \ || (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) \ || defined(CPU_S5L870X) || (CONFIG_CPU == S3C2440) \ -- cgit v1.2.3