summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-18 12:56:14 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-18 12:56:14 +0000
commitf8f3fab62ce4295e63f1e2e658e0753da473e4eb (patch)
tree33188d81bca1f62040bcee0e9b1263d95b4d3931 /firmware/target/arm/as3525
parenta01422c54be29cf721a442053fd5a70686c8841e (diff)
downloadrockbox-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.c2
-rw-r--r--firmware/target/arm/as3525/usb-drv-as3525v2.c5
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
47static struct usb_endpoint endpoints[USB_NUM_ENDPOINTS*2]; 48static struct usb_endpoint endpoints[USB_NUM_ENDPOINTS*2];
49#endif
48 50
49void usb_attach(void) 51void 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