diff options
author | Atish Patra <atish.patra@wdc.com> | 2019-01-09 12:17:41 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-18 07:35:12 +0300 |
commit | e0686ca844f6c7372edd353cffe08ddee5dcf5c9 (patch) | |
tree | 80e429366d1e0d604ae18676a20bb165236bbf55 /platform/sifive/fu540 | |
parent | 3075da07b69562889e27d6f702704803db1f6f72 (diff) | |
download | opensbi-e0686ca844f6c7372edd353cffe08ddee5dcf5c9.tar.xz |
platform: No need to pass context id for plic fixup.
PLIC DT entry fixup can be done by comparing external
interrupt number instead of context id. No need to invoke
fixup for each plic context.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'platform/sifive/fu540')
-rw-r--r-- | platform/sifive/fu540/platform.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/platform/sifive/fu540/platform.c b/platform/sifive/fu540/platform.c index d8ea0b4..4791803 100644 --- a/platform/sifive/fu540/platform.c +++ b/platform/sifive/fu540/platform.c @@ -69,10 +69,7 @@ static void fu540_modify_dt(void *fdt) fdt_setprop_string(fdt, chosen_offset, "stdout-path", "/soc/serial@10010000:115200"); - plic_fdt_fixup(fdt, "riscv,plic0", 0); - - for (i = 1; i < FU540_HART_COUNT; i++) - plic_fdt_fixup(fdt, "riscv,plic0", 2 * i - 1); + plic_fdt_fixup(fdt, "riscv,plic0"); } static int fu540_final_init(u32 hartid, bool cold_boot) { |