Skip to content

Commit

Permalink
Merge branch 'irqchip/atmel' into irqchip/core
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Cooper committed Oct 2, 2014
2 parents 468a903 + 20afdeb commit a778bf3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Required properties:
- compatible: Should be "atmel,<chip>-aic"
<chip> can be "at91rm9200" or "sama5d3"
<chip> can be "at91rm9200", "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.
Expand Down
12 changes: 11 additions & 1 deletion drivers/irqchip/irq-atmel-aic5.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ static void __init sama5d3_aic_irq_fixup(struct device_node *root)

static const struct of_device_id __initdata aic5_irq_fixups[] = {
{ .compatible = "atmel,sama5d3", .data = sama5d3_aic_irq_fixup },
{ .compatible = "atmel,sama5d4", .data = sama5d3_aic_irq_fixup },
{ /* sentinel */ },
};

Expand Down Expand Up @@ -341,11 +342,20 @@ static int __init aic5_of_init(struct device_node *node,
return 0;
}

#define NR_SAMA5D3_IRQS 50
#define NR_SAMA5D3_IRQS 48

static int __init sama5d3_aic5_of_init(struct device_node *node,
struct device_node *parent)
{
return aic5_of_init(node, parent, NR_SAMA5D3_IRQS);
}
IRQCHIP_DECLARE(sama5d3_aic5, "atmel,sama5d3-aic", sama5d3_aic5_of_init);

#define NR_SAMA5D4_IRQS 68

static int __init sama5d4_aic5_of_init(struct device_node *node,
struct device_node *parent)
{
return aic5_of_init(node, parent, NR_SAMA5D4_IRQS);
}
IRQCHIP_DECLARE(sama5d4_aic5, "atmel,sama5d4-aic", sama5d4_aic5_of_init);

0 comments on commit a778bf3

Please sign in to comment.