summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/system-as3525.c
diff options
context:
space:
mode:
authorCástor Muñoz <cmvidal@gmail.com>2016-07-31 03:52:22 +0200
committerGerrit Rockbox <gerrit@rockbox.org>2016-08-15 02:56:23 +0200
commit6a1644c52ac8af4696356db04894245f5a0e3dc3 (patch)
tree74813c30762ec62cc0df74e9ff28d9f1d7083d2a /firmware/target/arm/as3525/system-as3525.c
parent9868da4978922f016f3853da28621e17d088a18e (diff)
downloadrockbox-6a1644c52ac8af4696356db04894245f5a0e3dc3.tar.gz
rockbox-6a1644c52ac8af4696356db04894245f5a0e3dc3.zip
as3525v2: use the new USB DesignWare driver
Targets: sansaclipplus, samsaclipv2, sansaclipzip, sansafuzev2. Change-Id: I7773528a4e26707dd33fe9cb8948750d49570701
Diffstat (limited to 'firmware/target/arm/as3525/system-as3525.c')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index af11d7d842..8aa2d02ab7 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -50,7 +50,9 @@
50#define default_interrupt(name) \ 50#define default_interrupt(name) \
51 extern __attribute__((weak,alias("UIRQ"))) void name (void) 51 extern __attribute__((weak,alias("UIRQ"))) void name (void)
52 52
53#if CONFIG_USBOTG != USBOTG_DESIGNWARE
53static void UIRQ (void) __attribute__((interrupt ("IRQ"))); 54static void UIRQ (void) __attribute__((interrupt ("IRQ")));
55#endif
54void irq_handler(void) __attribute__((naked, interrupt ("IRQ"))); 56void irq_handler(void) __attribute__((naked, interrupt ("IRQ")));
55void fiq_handler(void) __attribute__((interrupt ("FIQ"))); 57void fiq_handler(void) __attribute__((interrupt ("FIQ")));
56 58
@@ -105,6 +107,11 @@ static void UIRQ(void)
105 if(status == 0) 107 if(status == 0)
106 { 108 {
107 status = VIC_RAW_INTR; /* masked interrupts */ 109 status = VIC_RAW_INTR; /* masked interrupts */
110#if CONFIG_USBOTG == USBOTG_DESIGNWARE
111 /* spurious interrupts from USB are expected */
112 if (status & INTERRUPT_USB)
113 return;
114#endif
108 masked = true; 115 masked = true;
109 } 116 }
110 117