irqchip/apple-aic: Support multiple dies
authorHector Martin <marcan@marcan.st>
Tue, 7 Dec 2021 11:17:57 +0000 (20:17 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Mar 2022 17:32:45 +0000 (10:32 -0700)
commit20394a502a1167aab0aceda7260196111313cf2a
tree9da88b2cfb6f961e172ae62ff0697586356e3a01
parent3f9ac51a00b3d0ade241b73adf58b4498f538c04
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