lib: utils/irqchip: Allow multiple FDT irqchip drivers
authorAnup Patel <apatel@ventanamicro.com>
Tue, 20 Apr 2021 06:22:47 +0000 (11:52 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 15 Feb 2022 15:04:08 +0000 (20:34 +0530)
commit5f56314618d4733c83bb80c65f9181e952f051ed
tree43652b3c24f1670d379a12155520af1b0d7a285e
parent222132f48c8efd3b2c84b0883df18216b170bf3d
lib: utils/irqchip: Allow multiple FDT irqchip drivers

We can have multiple FDT irqchip drivers to be probed when a RISC-V
system has different types of interrupt controller in a hierarchy.

This will be certainly the case when a RISC-V system has both
RISC-V AIA IMSIC and RISC-V AIA APLIC implemented.

We extend simple FDT irqchip framework to allow multiple FDT
irqchip drivers to be used for same RISC-V platform.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
lib/utils/irqchip/fdt_irqchip.c