forked from Mirrors/opensbi
lib: utils: Add a general device tree fix-up helper
This adds a general device tree fix-up helper to do all required device tree fix-ups for a typical platform. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
@@ -191,3 +191,10 @@ int fdt_reserved_memory_fixup(void *fdt)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void fdt_fixups(void *fdt)
|
||||
{
|
||||
fdt_plic_fixup(fdt, "riscv,plic0");
|
||||
|
||||
fdt_reserved_memory_fixup(fdt);
|
||||
}
|
||||
|
Reference in New Issue
Block a user