mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-06-12 22:31:45 +01:00
lib: sbi_irqchip: Allow irqchip drivers advertise capabilities
Extend struct sbi_irqchip_device to allow irqchip drivers advertise interrupt controller capabilities (such as wired interrupt, MSIs, etc). This further allows other parts of OpenSBI to lookup irqchip devices based on capabilities. Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260608125257.3220114-2-anup.patel@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -307,6 +307,7 @@ int aplic_cold_irqchip_init(struct aplic_data *aplic)
|
||||
|
||||
/* Register irqchip device */
|
||||
aplic->irqchip.id = aplic->unique_id;
|
||||
aplic->irqchip.caps = SBI_IRQCHIP_CAPS_WIRED;
|
||||
aplic->irqchip.num_hwirq = aplic->num_source + 1;
|
||||
rc = sbi_irqchip_add_device(&aplic->irqchip);
|
||||
if (rc)
|
||||
|
||||
Reference in New Issue
Block a user