From dba26e1cbca3fbcc4a636573692c3ef987780797 Mon Sep 17 00:00:00 2001 From: Paul Burton Date: Mon, 12 Jan 2015 02:31:05 +0000 Subject: [PATCH] MIPS: jz4740: add jz4780 interrupt controller support Allow the jz4780 interrupt controller to be probed from devicetree, supporting the 64 interrupts it provides. Signed-off-by: Paul Burton --- arch/mips/jz4740/irq.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/jz4740/irq.c b/arch/mips/jz4740/irq.c index 75f52509a8e790..98c5958e20ddc7 100644 --- a/arch/mips/jz4740/irq.c +++ b/arch/mips/jz4740/irq.c @@ -137,6 +137,13 @@ static int __init jz4740_intc_of_init(struct device_node *node, } IRQCHIP_DECLARE(jz4740_intc, "ingenic,jz4740-intc", jz4740_intc_of_init); +static int __init jz4780_intc_of_init(struct device_node *node, + struct device_node *parent) +{ + return jz47xx_intc_of_init(node, 2); +} +IRQCHIP_DECLARE(jz4780_intc, "ingenic,jz4780-intc", jz4780_intc_of_init); + #ifdef CONFIG_DEBUG_FS static inline void intc_seq_reg(struct seq_file *s, const char *name,