]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
irqchip: atmel-aic5: Add sama5d2 support
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 18 Jun 2015 13:07:35 +0000 (15:07 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 18 Jun 2015 13:29:52 +0000 (15:29 +0200)
Add sama5d2 support to irq-atmel-aic5.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Boris BREZILLON <boris.brezillon@free-electrons.com>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Ludovic Desroches <ludovic.desroches@atmel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: <linux-arm-kernel@lists.infradead.org>
Link: http://lkml.kernel.org/r/1434632855-27272-1-git-send-email-nicolas.ferre@atmel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
drivers/irqchip/irq-atmel-aic5.c

index f292917fa00d8bc3b6dce45b26d5cb8370a98289..0e9f09a6a2fe488ca11aa9be2823789f0d63baa7 100644 (file)
@@ -2,7 +2,7 @@
 
 Required properties:
 - compatible: Should be "atmel,<chip>-aic"
-  <chip> can be "at91rm9200", "sama5d3" or "sama5d4"
+  <chip> can be "at91rm9200", "sama5d2", "sama5d3" or "sama5d4"
 - interrupt-controller: Identifies the node as an interrupt controller.
 - interrupt-parent: For single AIC system, it is an empty property.
 - #interrupt-cells: The number of cells to define the interrupts. It should be 3.
index a2e8c3f876cbd248ff084e755cd96a2da91729af..459bf4429d365794d4f84c19116cb0d57755c646 100644 (file)
@@ -339,6 +339,15 @@ static int __init aic5_of_init(struct device_node *node,
        return 0;
 }
 
+#define NR_SAMA5D2_IRQS                77
+
+static int __init sama5d2_aic5_of_init(struct device_node *node,
+                                      struct device_node *parent)
+{
+       return aic5_of_init(node, parent, NR_SAMA5D2_IRQS);
+}
+IRQCHIP_DECLARE(sama5d2_aic5, "atmel,sama5d2-aic", sama5d2_aic5_of_init);
+
 #define NR_SAMA5D3_IRQS                48
 
 static int __init sama5d3_aic5_of_init(struct device_node *node,