lib: utils/irqchip: Add wrapper for T-HEAD PLIC delegation
authorSamuel Holland <samuel@sholland.org>
Mon, 13 Jun 2022 01:03:54 +0000 (20:03 -0500)
committerAnup Patel <anup@brainfault.org>
Mon, 13 Jun 2022 06:24:06 +0000 (11:54 +0530)
commit5e5675874ca042fe977ffb27afcfa06cadc84b8b
treee8aedc2bb0687b1ea890d1fb261f697d241d874a
parent69be3dff9df767c19a461fadf73ad7331b4bdb4c
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>
include/sbi_utils/irqchip/fdt_irqchip_plic.h
lib/utils/irqchip/fdt_irqchip_plic.c