ARM: bL_switcher: do not hardcode GIC IDs in the code
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 6 Jul 2012 01:33:26 +0000 (21:33 -0400)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 30 Jul 2013 13:02:16 +0000 (09:02 -0400)
commited96762e3241f57aa812977cf1920d3ee0363f4d
tree18849feb3008c15c4affc370119821a4b1c72458
parent9797a0e95ead7bfe52260c369ee9fe6ba445afaf
ARM: bL_switcher: do not hardcode GIC IDs in the code

Currently, GIC IDs are hardcoded making the code dependent on the 4+4 b.L
configuration.  Let's allow for GIC IDs to be discovered upon switcher
initialization to support other b.L configurations such as the 1+1 one,
or 2+3 as on the VExpress TC2.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
arch/arm/common/bL_switcher.c
drivers/irqchip/irq-gic.c
include/linux/irqchip/arm-gic.h