ARM: bL_switcher: do not hardcode GIC IDs in the code
authorChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 07:29:59 +0000 (09:29 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 07:29:59 +0000 (09:29 +0200)
commit0284d57fefb977c52748176308d30d30a148d24c
tree2f698e6991130bfa803ce47e06f23e75ae835bd9
parent176c78de32186c9c8def04bc9054f2f60d5ef6a0
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>
(cherry picked from commit ed96762e3241f57aa812977cf1920d3ee0363f4d)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
drivers/irqchip/irq-gic.c
include/linux/irqchip/arm-gic.h