lib/utils: Support fixing up the official DT bindings of PLIC
authorBin Meng <bmeng.cn@gmail.com>
Sat, 27 Mar 2021 05:05:27 +0000 (13:05 +0800)
committerAnup Patel <anup@brainfault.org>
Thu, 1 Apr 2021 05:01:11 +0000 (10:31 +0530)
commit4edc8224073e61498b1de338c67174f47fc3c5e1
tree61d60f59fd46506233c1a897a96433aec8526aaa
parentca3f35821baa18e309d856c0cf886b81970f2a00
lib/utils: Support fixing up the official DT bindings of PLIC

Current fdt_plic_fixup() only does necessary fix-up against the legacy
"riscv,plic0" node. The upstream Linux kernel defines its official DT
bindings which uses "sifive,plic-1.0.0" as the compatible string and
we should check that first, and if not present fall back to legacy.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
lib/utils/fdt/fdt_fixup.c