#include <linux/serial.h>
#include <linux/serial_core.h>
#include <asm/bootinfo.h>
+#include <asm/irq_cpu.h>
#include <asm/io.h>
#include "ar531x.h"
switch (mips_machtype) {
#ifdef CONFIG_ATHEROS_AR5312
case MACH_ATHEROS_AR5312:
- return "Atheros AR5312\n";
+ return "Atheros AR5312";
case MACH_ATHEROS_AR2312:
- return "Atheros AR2312\n";
+ return "Atheros AR2312";
case MACH_ATHEROS_AR2313:
- return "Atheros AR2313\n";
+ return "Atheros AR2313";
#endif
#ifdef CONFIG_ATHEROS_AR5315
case MACH_ATHEROS_AR2315:
- return "Atheros AR2315\n";
+ return "Atheros AR2315";
case MACH_ATHEROS_AR2316:
- return "Atheros AR2316\n";
+ return "Atheros AR2316";
case MACH_ATHEROS_AR2317:
- return "Atheros AR2317\n";
+ return "Atheros AR2317";
case MACH_ATHEROS_AR2318:
- return "Atheros AR2318\n";
+ return "Atheros AR2318";
#endif
}
return "Atheros (unknown)";
write_c0_compare(count + 1000);
}
+asmlinkage void plat_irq_dispatch(void)
+{
+ DO_AR5312(ar5312_irq_dispatch();)
+ DO_AR5315(ar5315_irq_dispatch();)
+}
+void __init arch_init_irq(void)
+{
+ clear_c0_status(ST0_IM);
+ mips_cpu_irq_init();
+
+ /* Initialize interrupt controllers */
+ DO_AR5312(ar5312_misc_intr_init(AR531X_MISC_IRQ_BASE);)
+ DO_AR5315(ar5315_misc_intr_init(AR531X_MISC_IRQ_BASE);)
+}