lib: utils/irqchip: Automatically delegate T-HEAD PLIC access
authorSamuel Holland <samuel@sholland.org>
Mon, 18 Oct 2021 05:33:50 +0000 (00:33 -0500)
committerAnup Patel <anup@brainfault.org>
Thu, 21 Oct 2021 04:36:00 +0000 (10:06 +0530)
commit78c2b19218bd62653b9fb31623a42ced45f38ea6
treecacc2885adb9fdb6aa7706a738b20e14b25956b9
parent422eda499cd6b69c0ca9f4cb06b3aceef17a3b27
lib: utils/irqchip: Automatically delegate T-HEAD PLIC access

The T-HEAD PLIC implementation requires setting a delegation bit
to allow access from S-mode. Now that the T-HEAD PLIC has its own
compatible string, set this bit automatically from the PLIC driver,
instead of reaching into the PLIC's MMIO space from another driver.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
docs/platform/thead-c9xx.md
lib/utils/irqchip/fdt_irqchip_plic.c
lib/utils/reset/fdt_reset_thead.c