summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-08 01:03:11 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-08 01:03:11 +0000
commit9503e6ede3e22747c911ff1dac14007b9eb3269a (patch)
tree07a4ad1bfed9a102f265ee485d9f18ca0eaef810 /firmware
parentbe24beefa7ac6b8a9ba5eaf04a59889b4ee9796c (diff)
downloadrockbox-9503e6ede3e22747c911ff1dac14007b9eb3269a.tar.gz
rockbox-9503e6ede3e22747c911ff1dac14007b9eb3269a.tar.bz2
rockbox-9503e6ede3e22747c911ff1dac14007b9eb3269a.zip
as3525v2 usb: define USB_HAS_BULK
Ask for alignement of USB buffers on cache line Also remind that the hardware is identical to the hardware in nano2g git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28033 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/as3525v2.h3
-rw-r--r--firmware/export/config.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/firmware/export/as3525v2.h b/firmware/export/as3525v2.h
index e0c13df757..c5c9c0504f 100644
--- a/firmware/export/as3525v2.h
+++ b/firmware/export/as3525v2.h
@@ -40,4 +40,7 @@
#define CCU_USB (*(volatile unsigned long *)(CCU_BASE + 0x20))
+#undef USB_DEVBSS_ATTR
+#define USB_DEVBSS_ATTR __attribute__((aligned(32)));
+
#endif /* __AS3525V2_H__ */
diff --git a/firmware/export/config.h b/firmware/export/config.h
index b81c684526..f54d004d7b 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -288,7 +288,7 @@ Lyre prototype 1 */
#define USBOTG_ARC 5020 /* PortalPlayer 502x */
#define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */
#define USBOTG_AS3525 3525 /* AMS AS3525 */
-#define USBOTG_AS3525v2 3535 /* AMS AS3525v2 */
+#define USBOTG_AS3525v2 3535 /* AMS AS3525v2 FIXME : same than S3C6400X */
#define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701 */
/* Multiple cores */
@@ -928,7 +928,7 @@ Lyre prototype 1 */
#define USB_HAS_INTERRUPT
#elif defined(CPU_TCC780X) || defined(CPU_TCC77X)
#define USB_HAS_BULK
-#elif CONFIG_USBOTG == USBOTG_S3C6400X
+#elif CONFIG_USBOTG == USBOTG_S3C6400X || CONFIG_USBOTG == USBOTG_AS3525v2
#define USB_HAS_BULK
//#define USB_HAS_INTERRUPT -- seems to be broken
#endif /* CONFIG_USBOTG */