summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/usb-drv-arc.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/usb-drv-arc.c')
-rw-r--r--firmware/target/arm/usb-drv-arc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/target/arm/usb-drv-arc.c b/firmware/target/arm/usb-drv-arc.c
index a2f8819962..92955e1ac2 100644
--- a/firmware/target/arm/usb-drv-arc.c
+++ b/firmware/target/arm/usb-drv-arc.c
@@ -338,8 +338,15 @@ struct queue_head {
unsigned int wait; /* for softwate use, indicates if the transfer is blocking */
} __attribute__((packed));
+#if CONFIG_CPU == IMX31L
+static struct queue_head qh_array[NUM_ENDPOINTS*2]
+ QHARRAY_ATTR __attribute__((aligned (2048)));
+#else
+/* This still needs to be 2048 byte aligned, but QHARRAY_ATTR should take
+ care of that */
static struct queue_head qh_array[NUM_ENDPOINTS*2]
- USBDEVBSS_ATTR __attribute__((aligned (2048)));
+ QHARRAY_ATTR __attribute__((aligned (4)));
+#endif
static struct wakeup transfer_completion_signal[NUM_ENDPOINTS*2]
SHAREDBSS_ATTR;