irqchip/apple-aic: Support multiple dies
authorHector Martin <marcan@marcan.st>
Tue, 7 Dec 2021 11:17:57 +0000 (20:17 +0900)
committerHector Martin <marcan@marcan.st>
Sat, 19 Feb 2022 07:52:26 +0000 (16:52 +0900)
commita9bd507ebfbf83fc0cd5a035e3040439094d8734
tree261fddaf6e1294e9e9022400a8ad60c1596e8c20
parent65d98be93b6e08024edb32d2743650080bf63804
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>
drivers/irqchip/irq-apple-aic.c