diff options
| author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2015-06-18 09:07:35 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2015-06-18 09:29:52 -0400 |
| commit | 62a993df31f795d87bcb4c6cb005d36f32f6ad55 (patch) | |
| tree | 8f08227793f389fbb34f7f5fd7a5afaddd0a2a41 | |
| parent | 2aedd0fdc69467b1544773acf08333c6f0027e42 (diff) | |
irqchip: atmel-aic5: Add sama5d2 support
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>
| -rw-r--r-- | Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt | 2 | ||||
| -rw-r--r-- | drivers/irqchip/irq-atmel-aic5.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt index f292917fa00d..0e9f09a6a2fe 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | Required properties: | 3 | Required properties: |
| 4 | - compatible: Should be "atmel,<chip>-aic" | 4 | - compatible: Should be "atmel,<chip>-aic" |
| 5 | <chip> can be "at91rm9200", "sama5d3" or "sama5d4" | 5 | <chip> can be "at91rm9200", "sama5d2", "sama5d3" or "sama5d4" |
| 6 | - interrupt-controller: Identifies the node as an interrupt controller. | 6 | - interrupt-controller: Identifies the node as an interrupt controller. |
| 7 | - interrupt-parent: For single AIC system, it is an empty property. | 7 | - interrupt-parent: For single AIC system, it is an empty property. |
| 8 | - #interrupt-cells: The number of cells to define the interrupts. It should be 3. | 8 | - #interrupt-cells: The number of cells to define the interrupts. It should be 3. |
diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c index a2e8c3f876cb..459bf4429d36 100644 --- a/drivers/irqchip/irq-atmel-aic5.c +++ b/drivers/irqchip/irq-atmel-aic5.c | |||
| @@ -339,6 +339,15 @@ static int __init aic5_of_init(struct device_node *node, | |||
| 339 | return 0; | 339 | return 0; |
| 340 | } | 340 | } |
| 341 | 341 | ||
| 342 | #define NR_SAMA5D2_IRQS 77 | ||
| 343 | |||
| 344 | static int __init sama5d2_aic5_of_init(struct device_node *node, | ||
| 345 | struct device_node *parent) | ||
| 346 | { | ||
| 347 | return aic5_of_init(node, parent, NR_SAMA5D2_IRQS); | ||
| 348 | } | ||
| 349 | IRQCHIP_DECLARE(sama5d2_aic5, "atmel,sama5d2-aic", sama5d2_aic5_of_init); | ||
| 350 | |||
| 342 | #define NR_SAMA5D3_IRQS 48 | 351 | #define NR_SAMA5D3_IRQS 48 |
| 343 | 352 | ||
| 344 | static int __init sama5d3_aic5_of_init(struct device_node *node, | 353 | static int __init sama5d3_aic5_of_init(struct device_node *node, |
