diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2009-01-19 13:41:25 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2009-01-19 13:41:25 +0000 |
commit | 616c98b38f6ddac0ac3dde8ec0fa248f835717e2 (patch) | |
tree | 5eeeabb85fbefa162a438edca88611c1bc688269 /firmware/export/usb_core.h | |
parent | cef6399c4c3bcaa35733bdab8b9016b66b71a6f0 (diff) | |
download | rockbox-616c98b38f6ddac0ac3dde8ec0fa248f835717e2.tar.gz rockbox-616c98b38f6ddac0ac3dde8ec0fa248f835717e2.zip |
USB detection changes. c200/e200: Consider USB to be powered when charger is plugged but detect USB connection by bus reset. When received, disconnect and restart the driver fully enabled. imx31: Fix hack used to make initial connect succeeded-- set PHY type before initial reset. General: Move some target code out of usb-drv-arc.c and implement it in respective usb sources and CPU headers so things stay clean.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19797 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/usb_core.h')
-rw-r--r-- | firmware/export/usb_core.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/firmware/export/usb_core.h b/firmware/export/usb_core.h index 7af8e43c8d..d0c8270d93 100644 --- a/firmware/export/usb_core.h +++ b/firmware/export/usb_core.h | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2007 by Bjรถrn Stenberg | 10 | * Copyright (C) 2007 by Bj๖rn Stenberg |
11 | * | 11 | * |
12 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU General Public License | 13 | * modify it under the terms of the GNU General Public License |
@@ -35,14 +35,6 @@ | |||
35 | 35 | ||
36 | /* endpoints */ | 36 | /* endpoints */ |
37 | #define EP_CONTROL 0 | 37 | #define EP_CONTROL 0 |
38 | #if CONFIG_CPU == IMX31L | ||
39 | #define NUM_ENDPOINTS 8 | ||
40 | #define USBDEVBSS_ATTR DEVBSS_ATTR | ||
41 | #else | ||
42 | #define USBDEVBSS_ATTR IBSS_ATTR | ||
43 | #define NUM_ENDPOINTS 3 | ||
44 | #endif | ||
45 | |||
46 | extern int usb_max_pkt_size; | 38 | extern int usb_max_pkt_size; |
47 | 39 | ||
48 | struct usb_class_driver; | 40 | struct usb_class_driver; |