else if (pending & RT305X_INTC_INT_UART1)
do_IRQ(RT305X_INTC_IRQ_UART1);
+ else if (pending & RT305X_INTC_INT_PERFC)
+ do_IRQ(RT305X_INTC_IRQ_PERFC);
+
+ else if (pending & RT305X_INTC_INT_OTG)
+ do_IRQ(RT305X_INTC_IRQ_OTG);
+
/* TODO: handle PIO interrupts as well */
else
mips_cpu_irq_init();
ramips_intc_irq_init(RT305X_INTC_BASE, RT305X_CPU_IRQ_INTC,
RT305X_INTC_IRQ_BASE);
+
+ cp0_perfcount_irq = RT305X_INTC_IRQ_PERFC;
}