UPSTREAM: irqchip/gic-v3: Refactor gic_of_init() for GICv3 driver
authorTomasz Nowicki <tn@semihalf.com>
Tue, 19 Jan 2016 13:11:14 +0000 (14:11 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 1 Jul 2016 06:20:47 +0000 (14:20 +0800)
commitb90092bac21cfb5bea5c0a183818367ee6743b9b
treeb0a70cd4e782a45cb12d41065d24d2fdc68b0849
parent923b1ab5f523631e59342b1ad5b30aca24e03172
UPSTREAM: irqchip/gic-v3: Refactor gic_of_init() for GICv3 driver

Isolate hardware abstraction (FDT) code to gic_of_init().
Rest of the logic goes to gic_init_bases() and expects well
defined data to initialize GIC properly. The same solution
is used for GICv2 driver.

This is needed for ACPI initialization later.

Change-Id: I61fcbd96ecd2dc8130cdd2d6ce79841eb184e87b
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
(cherry picked from commit db57d7460ea74de2204ddc303520753f256ea67d)
drivers/irqchip/irq-gic-v3.c