ARM: gic: add irq_domain support
authorRob Herring <rob.herring@calxeda.com>
Thu, 29 Sep 2011 02:25:31 +0000 (21:25 -0500)
committerArnd Bergmann <arnd@arndb.de>
Mon, 31 Oct 2011 13:03:24 +0000 (14:03 +0100)
commit4294f8baaf174c9aa57886e7ed27caf4b02578f6
treeefc535ff45a6d405a6befecd421ad1091a2d5ad6
parent6d274309d0e64bdbdb6c50945ca2964596e8fa5a
ARM: gic: add irq_domain support

Convert the gic interrupt controller to use irq domains in preparation
for device-tree binding and MULTI_IRQ. This allows for translation between
GIC interrupt IDs and Linux irq numbers.

The meaning of irq_offset has changed. It now is just the number of skipped
GIC interrupt IDs for the controller. It will be 16 for primary GIC and 32
for secondary GICs.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/common/Kconfig
arch/arm/common/gic.c
arch/arm/include/asm/hardware/gic.h