projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a35db9a
)
arm: omap: irq: use compatible flag to figure out number of IRQ lines
author
Felipe Balbi
<balbi@ti.com>
Tue, 9 Sep 2014 00:54:47 +0000
(17:54 -0700)
committer
Tony Lindgren
<tony@atomide.com>
Thu, 11 Sep 2014 20:05:34 +0000
(13:05 -0700)
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>
arch/arm/mach-omap2/irq.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-omap2/irq.c
b/arch/arm/mach-omap2/irq.c
index 97845df610307fb57302ddb9425b78240f2694cd..7a4ead3684d94a1e850686e430f765095880f3eb 100644
(file)
--- 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,
return -EINVAL;
}
+ if (of_device_is_compatible(node, "ti,am33xx-intc"))
+ nr_irq = 128;
+
if (of_property_read_u32(node, "ti,intc-size", &nr_irq))
pr_warn("unable to get intc-size, default to %d\n", nr_irq);