]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: gic: add OF based initialization
authorRob Herring <rob.herring@calxeda.com>
Thu, 29 Sep 2011 02:27:52 +0000 (21:27 -0500)
committerArnd Bergmann <arnd@arndb.de>
Thu, 20 Oct 2011 15:58:29 +0000 (17:58 +0200)
commite3f14d321b3408c7fe449a5f3e7ee4f13ad49f4a
treedc05640b169643ab096f5794237d76df904baf98
parent2071a2a4b8ed52929e54fe1bf58f329ffbf3316f
ARM: gic: add OF based initialization

This adds ARM gic interrupt controller initialization using device tree
data.

The initialization function is intended to be called by of_irq_init
function like this:

const static struct of_device_id irq_match[] = {
{ .compatible = "arm,cortex-a9-gic", .data = gic_of_init, },
{}
};

static void __init init_irqs(void)
{
of_irq_init(irq_match);
}

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Documentation/devicetree/bindings/arm/gic.txt [new file with mode: 0644]
arch/arm/common/gic.c
arch/arm/include/asm/hardware/gic.h