diff options
author | Felipe Balbi <balbi@ti.com> | 2014-09-08 20:54:47 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-09-11 16:05:34 -0400 |
commit | 470f30deaeb870dcc65d2357fbb675deb3e779de (patch) | |
tree | a79c8487c393d02a38e1b62e8f29c84115c8f042 /arch/arm/mach-omap2 | |
parent | a35db9a4cb800f343cd4bbfeeb6568807a16aad8 (diff) |
arm: omap: irq: use compatible flag to figure out number of IRQ lines
so far, only am33xx has 128 lines, all other devices
have only 96.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/irq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 97845df61030..7a4ead3684d9 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c | |||
@@ -310,6 +310,9 @@ static int __init intc_of_init(struct device_node *node, | |||
310 | return -EINVAL; | 310 | return -EINVAL; |
311 | } | 311 | } |
312 | 312 | ||
313 | if (of_device_is_compatible(node, "ti,am33xx-intc")) | ||
314 | nr_irq = 128; | ||
315 | |||
313 | if (of_property_read_u32(node, "ti,intc-size", &nr_irq)) | 316 | if (of_property_read_u32(node, "ti,intc-size", &nr_irq)) |
314 | pr_warn("unable to get intc-size, default to %d\n", nr_irq); | 317 | pr_warn("unable to get intc-size, default to %d\n", nr_irq); |
315 | 318 | ||