From c2d2b9140a94a482c0ea3b0327fcb6c483827c2a Mon Sep 17 00:00:00 2001 From: Nick Hu Date: Mon, 20 Oct 2025 14:34:09 +0800 Subject: lib: utils/irqchip: Add APLIC restore function Since the APLIC may enter a reset state upon system wake-up from a platform low power state, adding a restore function to reinitialize the APLIC. Reviewed-by: Yong-Xuan Wang Reviewed-by: Cyan Yang Reviewed-by: Anup Patel Signed-off-by: Nick Hu Link: https://lore.kernel.org/r/20251020-cache-upstream-v7-7-69a132447d8a@sifive.com Signed-off-by: Anup Patel --- include/sbi_utils/irqchip/aplic.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/sbi_utils/irqchip/aplic.h b/include/sbi_utils/irqchip/aplic.h index e31f48a4..cbfcd3fd 100644 --- a/include/sbi_utils/irqchip/aplic.h +++ b/include/sbi_utils/irqchip/aplic.h @@ -33,6 +33,7 @@ struct aplic_delegate_data { struct aplic_data { /* Private members */ struct sbi_irqchip_device irqchip; + struct sbi_dlist node; /* Public members */ unsigned long addr; unsigned long size; @@ -48,4 +49,6 @@ struct aplic_data { int aplic_cold_irqchip_init(struct aplic_data *aplic); +void aplic_reinit_all(void); + #endif -- cgit v1.3.1