diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2020-03-17 17:59:50 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-18 08:34:48 +0300 |
commit | db6a2b5c681e30351061df089ab2e86bae4509a9 (patch) | |
tree | e2732866562edf63c7f6e02eeb14d559bceaad10 /lib/utils/fdt | |
parent | 3f1c847d1fec852a2b98ee408e4193d70949acd4 (diff) | |
download | opensbi-db6a2b5c681e30351061df089ab2e86bae4509a9.tar.xz |
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>
Diffstat (limited to 'lib/utils/fdt')
-rw-r--r-- | lib/utils/fdt/fdt_helper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/utils/fdt/fdt_helper.c b/lib/utils/fdt/fdt_helper.c index 4ef7a5e..47cd1d3 100644 --- a/lib/utils/fdt/fdt_helper.c +++ b/lib/utils/fdt/fdt_helper.c @@ -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); +} |