irqchip/apple-aic: Support multiple dies
authorHector Martin <marcan@marcan.st>
Wed, 9 Mar 2022 19:21:22 +0000 (04:21 +0900)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Mar 2022 08:59:46 +0000 (08:59 +0000)
commita801f0ee563b8180caf186493806a145a75b4a3c
tree3c451d3686e0e727f76674bfd0423e19d58f2dff
parentdc97fd6fec009957e81026055fc99a03877ff3b8
irqchip/apple-aic: Support multiple dies

Multi-die support in AICv2 uses several sets of IRQ registers. Introduce
a die count and compute the register group offset based on the die ID
field of the hwirq number, as reported by the hardware.

Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220309192123.152028-7-marcan@marcan.st
drivers/irqchip/irq-apple-aic.c