diff options
author | Tom Rini <trini@konsulko.com> | 2022-06-03 15:42:13 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-03 15:42:13 -0400 |
commit | 90189ecd59cdf14afbe6014be5c068e599b65a72 (patch) | |
tree | a0b1987265474d5f4ceeaf03b4acfcca80962a28 /common/fdt_support.c | |
parent | 3053b781465711fd05b88ab141b1f2b55a875516 (diff) | |
parent | c30f6d62f07d788263e1f1ac4909f929feefba3f (diff) |
Merge branch '2022-06-03-assorted-fixes'
- armv8 TCR write bugfix, ubifs bugfix, imx8mq clk bugfixes, two network
fixes, Add U-Boot version to chosen node, update TI AM64x board
maintainers
Diffstat (limited to 'common/fdt_support.c')
-rw-r--r-- | common/fdt_support.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c index 7e9e6542041..8c18af2ce15 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -19,6 +19,7 @@ #include <fdt_support.h> #include <exports.h> #include <fdtdec.h> +#include <version.h> /** * fdt_getprop_u32_default_node - Return a node's property or a default @@ -305,6 +306,15 @@ int fdt_chosen(void *fdt) } } + /* add u-boot version */ + err = fdt_setprop(fdt, nodeoffset, "u-boot,version", PLAIN_VERSION, + strlen(PLAIN_VERSION) + 1); + if (err < 0) { + printf("WARNING: could not set u-boot,version %s.\n", + fdt_strerror(err)); + return err; + } + return fdt_fixup_stdout(fdt, nodeoffset); } |