diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-18 12:56:14 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-18 12:56:14 +0000 |
commit | f8f3fab62ce4295e63f1e2e658e0753da473e4eb (patch) | |
tree | 33188d81bca1f62040bcee0e9b1263d95b4d3931 /firmware/target/arm/as3525 | |
parent | a01422c54be29cf721a442053fd5a70686c8841e (diff) | |
download | rockbox-f8f3fab62ce4295e63f1e2e658e0753da473e4eb.tar.gz rockbox-f8f3fab62ce4295e63f1e2e658e0753da473e4eb.zip |
as3525 usb: build as3525v2 file based on CONFIG_USBOTG, and fix warnings
build it on fuzev2 and clipv2 too, it should be the same controller
as3525v1 file is only build for CONFIG_USBOTG == USBOTG_AS3525, no need
to check for it in the .c file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26142 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r-- | firmware/target/arm/as3525/usb-drv-as3525.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/as3525/usb-drv-as3525v2.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/usb-drv-as3525.c b/firmware/target/arm/as3525/usb-drv-as3525.c index 15955276ab..2cb1318f72 100644 --- a/firmware/target/arm/as3525/usb-drv-as3525.c +++ b/firmware/target/arm/as3525/usb-drv-as3525.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include "usb_core.h" | 35 | #include "usb_core.h" |
36 | #include "string.h" | 36 | #include "string.h" |
37 | 37 | ||
38 | #if defined(USE_ROCKBOX_USB) && CONFIG_USBOTG == USBOTG_AS3525 | 38 | #if defined(USE_ROCKBOX_USB) |
39 | 39 | ||
40 | #define USB_NUM_EPS 4 | 40 | #define USB_NUM_EPS 4 |
41 | 41 | ||
diff --git a/firmware/target/arm/as3525/usb-drv-as3525v2.c b/firmware/target/arm/as3525/usb-drv-as3525v2.c index 9afe8255e5..83a5701a11 100644 --- a/firmware/target/arm/as3525/usb-drv-as3525v2.c +++ b/firmware/target/arm/as3525/usb-drv-as3525v2.c | |||
@@ -44,7 +44,9 @@ struct usb_endpoint | |||
44 | bool busy; | 44 | bool busy; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | #if 0 | ||
47 | static struct usb_endpoint endpoints[USB_NUM_ENDPOINTS*2]; | 48 | static struct usb_endpoint endpoints[USB_NUM_ENDPOINTS*2]; |
49 | #endif | ||
48 | 50 | ||
49 | void usb_attach(void) | 51 | void usb_attach(void) |
50 | { | 52 | { |
@@ -116,7 +118,9 @@ static void core_reset(void) | |||
116 | i++; | 118 | i++; |
117 | 119 | ||
118 | if(USB_GRSTCTL & USB_GRSTCTL_csftrst) | 120 | if(USB_GRSTCTL & USB_GRSTCTL_csftrst) |
121 | { | ||
119 | logf("oops, usb core soft reset hang :("); | 122 | logf("oops, usb core soft reset hang :("); |
123 | } | ||
120 | 124 | ||
121 | /* Wait for 3 PHY Clocks */ | 125 | /* Wait for 3 PHY Clocks */ |
122 | /*mdelay(100);*/ | 126 | /*mdelay(100);*/ |
@@ -256,6 +260,5 @@ bool usb_drv_stalled(int ep, bool in) | |||
256 | (void) ep; | 260 | (void) ep; |
257 | (void) in; | 261 | (void) in; |
258 | return true; | 262 | return true; |
259 | return true; | ||
260 | } | 263 | } |
261 | 264 | ||