diff options
| author | Nick Hu <[email protected]> | 2025-10-20 14:34:09 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-10-28 11:27:59 +0530 |
| commit | c2d2b9140a94a482c0ea3b0327fcb6c483827c2a (patch) | |
| tree | e22dfc7abad1dc212559a7065419a79a781f1cb3 /include/sbi_utils | |
| parent | 64904e5d5c99dbb067c0a82d450e2ebf15d48f33 (diff) | |
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 <[email protected]>
Reviewed-by: Cyan Yang <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Signed-off-by: Nick Hu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include/sbi_utils')
| -rw-r--r-- | include/sbi_utils/irqchip/aplic.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
