]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP: Work around hardcoded interrupts
authorMarc Zyngier <marc.zyngier@arm.com>
Sat, 17 Jan 2015 10:21:08 +0000 (10:21 +0000)
committerTony Lindgren <tony@atomide.com>
Sat, 17 Jan 2015 16:56:12 +0000 (08:56 -0800)
commit3846e536cd693bc1a0bc889462780c0a71d5ae3a
tree888e0445b2ceab5ec0774990e963defe7858f926
parent769b965425450e3782567c0936714be0465d2261
ARM: OMAP: Work around hardcoded interrupts

Commit 1c0fa7afaba5 ("irqchip: gic: Support hierarchy irq domain")
changed the GIC driver to use a non-legacy IRQ domain on DT
platforms. This patch assumes that DT-driven systems are getting
all of their interrupts from device tree.

Turns out that OMAP has quite a few hidden gems, and still uses
hardcoded interrupts despite having fairly complete DTs.

This patch attempts to work around these by offering a translation
method that can be called directly from the hwmod code, if present.
The same hack is sprinkled over PRCM and TWL.

It isn't pretty, but it seems to do the job without having to add
more hacks to the interrupt controller code.

Tested on OMAP4 (Panda-ES) and OMAP5 (UEVM5432).

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Nishanth Menon <nm@ti.com>
[tony@atomide.com: updated to fix make randconfig issue]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/common.h
arch/arm/mach-omap2/omap4-common.c
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/omap_hwmod.h
arch/arm/mach-omap2/omap_hwmod_44xx_data.c
arch/arm/mach-omap2/omap_hwmod_54xx_data.c
arch/arm/mach-omap2/prcm-common.h
arch/arm/mach-omap2/prm44xx.c
arch/arm/mach-omap2/prm_common.c
arch/arm/mach-omap2/twl-common.c