summaryrefslogtreecommitdiff
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
parentbe24beefa7ac6b8a9ba5eaf04a59889b4ee9796c (diff)
downloadrockbox-9503e6ede3e22747c911ff1dac14007b9eb3269a.tar.gz
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
-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 @@
40 40
41#define CCU_USB (*(volatile unsigned long *)(CCU_BASE + 0x20)) 41#define CCU_USB (*(volatile unsigned long *)(CCU_BASE + 0x20))
42 42
43#undef USB_DEVBSS_ATTR
44#define USB_DEVBSS_ATTR __attribute__((aligned(32)));
45
43#endif /* __AS3525V2_H__ */ 46#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 */
288#define USBOTG_ARC 5020 /* PortalPlayer 502x */ 288#define USBOTG_ARC 5020 /* PortalPlayer 502x */
289#define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */ 289#define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */
290#define USBOTG_AS3525 3525 /* AMS AS3525 */ 290#define USBOTG_AS3525 3525 /* AMS AS3525 */
291#define USBOTG_AS3525v2 3535 /* AMS AS3525v2 */ 291#define USBOTG_AS3525v2 3535 /* AMS AS3525v2 FIXME : same than S3C6400X */
292#define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701 */ 292#define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701 */
293 293
294/* Multiple cores */ 294/* Multiple cores */
@@ -928,7 +928,7 @@ Lyre prototype 1 */
928#define USB_HAS_INTERRUPT 928#define USB_HAS_INTERRUPT
929#elif defined(CPU_TCC780X) || defined(CPU_TCC77X) 929#elif defined(CPU_TCC780X) || defined(CPU_TCC77X)
930#define USB_HAS_BULK 930#define USB_HAS_BULK
931#elif CONFIG_USBOTG == USBOTG_S3C6400X 931#elif CONFIG_USBOTG == USBOTG_S3C6400X || CONFIG_USBOTG == USBOTG_AS3525v2
932#define USB_HAS_BULK 932#define USB_HAS_BULK
933//#define USB_HAS_INTERRUPT -- seems to be broken 933//#define USB_HAS_INTERRUPT -- seems to be broken
934#endif /* CONFIG_USBOTG */ 934#endif /* CONFIG_USBOTG */