fdt: add support for adding pmem nodes
authorMasahisa Kojima <kojima.masahisa@socionext.com>
Mon, 17 Mar 2025 08:33:57 +0000 (14:03 +0530)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 26 Mar 2025 11:28:08 +0000 (13:28 +0200)
commit9c407347b496124849665aca6b76f48118891707
treee88d0ffbe06bc4dbc000888149ea02611800ec2e
parent7e624377e99314bdfac6cb5a3d216dff49a047e9
fdt: add support for adding pmem nodes

One of the problems an OS may face, when running in EFI, is that
a mounted ISO, after calling ExitBootServices goes away, if that ISO
is resident in RAM memory as a ramdisk.

ACPI has NFIT and NVDIMM support to provide ramdisks to the OS, but we
don't have anything in place for DTs. Linux and device trees have support
for persistent memory devices. So add a function that can inject a pmem
node in a DT, so we can pass information on the ramdisk the OS.

Signed-off-by: Masahisa Kojima <kojima.masahisa@socionext.com>
Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
boot/fdt_support.c
include/fdt_support.h