]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: gic: add OF based initialization
authorArnd Bergmann <arnd@arndb.de>
Fri, 21 Oct 2011 15:03:21 +0000 (17:03 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Oct 2011 15:03:21 +0000 (17:03 +0200)
commit5fe5c4d3bf11f4580ac9ee87526b705a1ec6c57f
tree1fd7a098788ceb81b883f15c628a19dafe9316f3
parent6b63647c60da1508a6f87b53156255434f557c59
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>
arch/arm/include/asm/hardware/cache-l2x0.h