aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/mips/xilfpga/intc.c
diff options
context:
space:
mode:
authorZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>2015-10-26 11:30:56 +0000
committerRalf Baechle <ralf@linux-mips.org>2015-11-11 08:38:44 +0100
commit9937f5fff889bde488c5ffd238dcb49e9b9cc7b7 (patch)
tree2ac3a86bd0914a3b264ade99152f73c052a1cb2e /arch/mips/xilfpga/intc.c
parentMIPS: xilfpga: Add xilfpga device tree files. (diff)
downloadwireguard-linux-9937f5fff889bde488c5ffd238dcb49e9b9cc7b7.tar.xz
wireguard-linux-9937f5fff889bde488c5ffd238dcb49e9b9cc7b7.zip
MIPS: xilfpga: Add mipsfpga platform code
The xilfpga platform will be DT only. Add required platform code. DT files have already been added separately. Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> Cc: robh+dt@kernel.org Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/11364/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
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 @@
+/*
+ * Xilfpga interrupt controller setup
+ *
+ * Copyright (C) 2015 Imagination Technologies
+ * Author: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ */
+
+#include <linux/of.h>
+#include <linux/of_irq.h>
+
+#include <asm/irq_cpu.h>
+
+static struct of_device_id of_irq_ids[] __initdata = {
+ { .compatible = "mti,cpu-interrupt-controller", .data = mips_cpu_irq_of_init },
+ {},
+};
+
+void __init arch_init_irq(void)
+{
+ of_irq_init(of_irq_ids);
+}