DRIVERS: IRQCHIP: IRQ-GIC: Add support for routable irqs
authorSricharan R <r.sricharan@ti.com>
Tue, 3 Dec 2013 10:27:22 +0000 (15:57 +0530)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 07:30:42 +0000 (09:30 +0200)
commitbd09b6492478715ef4ee191e9bd75a4ac98294a2
tree9dae3b260c89107eb1c052e50ec1b339a2fbc371
parent893fe6dda7e382a2ee069c43417dd292ce422a63
DRIVERS: IRQCHIP: IRQ-GIC: Add support for routable irqs

In some socs the gic can be preceded by a crossbar IP which
routes the peripheral interrupts to the gic inputs. The peripheral
interrupts are associated with a fixed crossbar input line and the
crossbar routes that to one of the free gic input line.

The DT entries for peripherals provides the fixed crossbar input line
as its interrupt number and the mapping code should associate this with
a free gic input line. This patch adds the support inside the gic irqchip
to handle such routable irqs. The routable irqs are registered in a linear
domain. The registered routable domain's callback should be implemented
to get a free irq and to configure the IP to route it.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Sricharan R <r.sricharan@ti.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit 006e983bbc805431c44e2135e13841f66059a045)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Documentation/devicetree/bindings/arm/gic.txt
drivers/irqchip/irq-gic.c
include/linux/irqchip/arm-gic.h