summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@collabora.com>2020-03-20 10:59:24 +0100
committerTom Rini <trini@konsulko.com>2020-10-14 11:16:34 -0400
commit9ea0a1ee9309054102e61a29e746db672494d385 (patch)
treeb9a033c630654fadfdee30b85175773b18a7405d /common
parent26f555a6e5454043ed0b0a12d6fce252f5ae5b80 (diff)
downloadu-boot-9ea0a1ee9309054102e61a29e746db672494d385.tar.gz
u-boot-9ea0a1ee9309054102e61a29e746db672494d385.tar.xz
u-boot-9ea0a1ee9309054102e61a29e746db672494d385.zip
cmd: Fixup DT to pass PStore Ramoops parameters
To simplify configuration and keep synchronized the PStore/Ramoops between U-Boot and the Linux kernel, this commit dynamically adds the Ramoops parameters defined in the U-Boot session to the Device Tree. Signed-off-by: Frédéric Danis <frederic.danis@collabora.com> Cc: Tom Rini <trini@konsulko.com> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/image-fdt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c
index 3d6935ad40..327a8c4c39 100644
--- a/common/image-fdt.c
+++ b/common/image-fdt.c
@@ -567,6 +567,10 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
/* Update ethernet nodes */
fdt_fixup_ethernet(blob);
+#if CONFIG_IS_ENABLED(CMD_PSTORE)
+ /* Append PStore configuration */
+ fdt_fixup_pstore(blob);
+#endif
if (IMAGE_OF_BOARD_SETUP) {
fdt_ret = ft_board_setup(blob, gd->bd);
if (fdt_ret) {