aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/xilfpga/intc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/xilfpga/intc.c')
-rw-r--r--arch/mips/xilfpga/intc.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/mips/xilfpga/intc.c b/arch/mips/xilfpga/intc.c
new file mode 100644
index 000000000000..c4d1a716b347
--- /dev/null
+++ b/arch/mips/xilfpga/intc.c
@@ -0,0 +1,25 @@
1/*
2 * Xilfpga interrupt controller setup
3 *
4 * Copyright (C) 2015 Imagination Technologies
5 * Author: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,
9 * version 2, as published by the Free Software Foundation.
10 */
11
12#include <linux/of.h>
13#include <linux/of_irq.h>
14
15#include <asm/irq_cpu.h>
16
17static struct of_device_id of_irq_ids[] __initdata = {
18 { .compatible = "mti,cpu-interrupt-controller", .data = mips_cpu_irq_of_init },
19 {},
20};
21
22void __init arch_init_irq(void)
23{
24 of_irq_init(of_irq_ids);
25}