lib: utils: Add a fdt_reserved_memory_fixup() helper
authorBin Meng <bmeng.cn@gmail.com>
Tue, 17 Mar 2020 14:59:40 +0000 (07:59 -0700)
committerAnup Patel <anup@brainfault.org>
Wed, 18 Mar 2020 03:49:44 +0000 (09:19 +0530)
commitfcb1dedb2d4d2f2d77a165b1078244caf13363be
treedc52d9af343ed4560c95b34ed6ac9114b1f6a758
parentdce88467af77ed60e7b31ab3a9423fe640b8553c
lib: utils: Add a fdt_reserved_memory_fixup() helper

Add a helper routine to insert a child node of the reserved memory
node in the device tree that describes the protected memory region
done by OpenSBI via PMP.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi_utils/fdt/fdt_helper.h [new file with mode: 0644]
lib/utils/fdt/fdt_helper.c [new file with mode: 0644]
lib/utils/fdt/objects.mk [new file with mode: 0644]