forked from Mirrors/opensbi
lib: utils/irqchip: Add wrapper for T-HEAD PLIC delegation
The delegation bit is lost along with the rest of the PLIC state when the CPU power domain in the Allwinner D1 is powered down, so the PLIC needs to be re-delegated to S-mode during the hart resume path. Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:

committed by
Anup Patel

parent
69be3dff9d
commit
5e5675874c
@@ -17,4 +17,6 @@ void fdt_plic_context_save(bool smode, u32 *enable, u32 *threshold);
|
||||
|
||||
void fdt_plic_context_restore(bool smode, const u32 *enable, u32 threshold);
|
||||
|
||||
void thead_plic_restore(void);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user