1
0
Fork 0
forked from len0rd/rockbox

as3525v2: use the new USB DesignWare driver

Targets: sansaclipplus, samsaclipv2, sansaclipzip, sansafuzev2.

Change-Id: I7773528a4e26707dd33fe9cb8948750d49570701
This commit is contained in:
Cástor Muñoz 2016-07-31 03:52:22 +02:00 committed by Gerrit Rockbox
parent 9868da4978
commit 6a1644c52a
7 changed files with 93 additions and 5 deletions

View file

@ -50,7 +50,9 @@
#define default_interrupt(name) \
extern __attribute__((weak,alias("UIRQ"))) void name (void)
#if CONFIG_USBOTG != USBOTG_DESIGNWARE
static void UIRQ (void) __attribute__((interrupt ("IRQ")));
#endif
void irq_handler(void) __attribute__((naked, interrupt ("IRQ")));
void fiq_handler(void) __attribute__((interrupt ("FIQ")));
@ -105,6 +107,11 @@ static void UIRQ(void)
if(status == 0)
{
status = VIC_RAW_INTR; /* masked interrupts */
#if CONFIG_USBOTG == USBOTG_DESIGNWARE
/* spurious interrupts from USB are expected */
if (status & INTERRUPT_USB)
return;
#endif
masked = true;
}