Commit 20afdeb812da4097447eb324f34be11a10b11542

Authored by Alexandre Belloni
Committed by Jason Cooper
1 parent 0cae165ffc

irqchip: atmel-aic5: Add sama5d4 support

Add sama5d4 support to irq-atmel-aic5.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Link: https://lkml.kernel.org/r/1410536587-24607-2-git-send-email-alexandre.belloni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>

Showing 2 changed files with 11 additions and 1 deletions Side-by-side Diff

Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
... ... @@ -2,7 +2,7 @@
2 2  
3 3 Required properties:
4 4 - compatible: Should be "atmel,<chip>-aic"
5   - <chip> can be "at91rm9200" or "sama5d3"
  5 + <chip> can be "at91rm9200", "sama5d3" or "sama5d4"
6 6 - interrupt-controller: Identifies the node as an interrupt controller.
7 7 - interrupt-parent: For single AIC system, it is an empty property.
8 8 - #interrupt-cells: The number of cells to define the interrupts. It should be 3.
drivers/irqchip/irq-atmel-aic5.c
... ... @@ -297,6 +297,7 @@
297 297  
298 298 static const struct of_device_id __initdata aic5_irq_fixups[] = {
299 299 { .compatible = "atmel,sama5d3", .data = sama5d3_aic_irq_fixup },
  300 + { .compatible = "atmel,sama5d4", .data = sama5d3_aic_irq_fixup },
300 301 { /* sentinel */ },
301 302 };
302 303  
... ... @@ -351,4 +352,13 @@
351 352 return aic5_of_init(node, parent, NR_SAMA5D3_IRQS);
352 353 }
353 354 IRQCHIP_DECLARE(sama5d3_aic5, "atmel,sama5d3-aic", sama5d3_aic5_of_init);
  355 +
  356 +#define NR_SAMA5D4_IRQS 68
  357 +
  358 +static int __init sama5d4_aic5_of_init(struct device_node *node,
  359 + struct device_node *parent)
  360 +{
  361 + return aic5_of_init(node, parent, NR_SAMA5D4_IRQS);
  362 +}
  363 +IRQCHIP_DECLARE(sama5d4_aic5, "atmel,sama5d4-aic", sama5d4_aic5_of_init);