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>
Tue, 18 Jan 2022 11:20:15 +0000 (20:20 +0900)
commit62b1b3307d1c735b8378ac2d936d624d7ab35258
treecbc004e40cca59a41666abbe603f4db01eac7749
parent714862d1fac36a040ef3498dd2cc76f86f531519
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