diff options
author | Frédéric Danis <frederic.danis@collabora.com> | 2020-03-20 10:59:24 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-14 11:16:34 -0400 |
commit | 9ea0a1ee9309054102e61a29e746db672494d385 (patch) | |
tree | b9a033c630654fadfdee30b85175773b18a7405d /common | |
parent | 26f555a6e5454043ed0b0a12d6fce252f5ae5b80 (diff) | |
download | u-boot-9ea0a1ee9309054102e61a29e746db672494d385.zip u-boot-9ea0a1ee9309054102e61a29e746db672494d385.tar.gz u-boot-9ea0a1ee9309054102e61a29e746db672494d385.tar.bz2 |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c index 3d6935a..327a8c4 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) { |