summaryrefslogtreecommitdiff
path: root/lib/utils/reset
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2021-10-18 00:33:50 -0500
committerAnup Patel <[email protected]>2021-10-21 10:06:00 +0530
commit78c2b19218bd62653b9fb31623a42ced45f38ea6 (patch)
treecacc2885adb9fdb6aa7706a738b20e14b25956b9 /lib/utils/reset
parent422eda499cd6b69c0ca9f4cb06b3aceef17a3b27 (diff)
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 <[email protected]> Reviewed-by: Bin Meng <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/reset')
-rw-r--r--lib/utils/reset/fdt_reset_thead.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/utils/reset/fdt_reset_thead.c b/lib/utils/reset/fdt_reset_thead.c
index 750b7aa5..d4916872 100644
--- a/lib/utils/reset/fdt_reset_thead.c
+++ b/lib/utils/reset/fdt_reset_thead.c
@@ -82,14 +82,6 @@ static int thead_reset_init(void *fdt, int nodeoff,
clone_csrs(cnt);
}
-
- /* Delegate plic enable regs for S-mode */
- val = fdt_getprop(fdt, nodeoff, "plic-delegate", &len);
- if (len > 0 && val) {
- p = (void *)(ulong)fdt64_to_cpu(*val);
- writel(BIT(0), p);
- }
-
/* Old reset method for secondary harts */
if (fdt_getprop(fdt, nodeoff, "using-csr-reset", &len)) {
csr_write(0x7c7, (ulong)&__thead_pre_start_warm);