diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-02-08 13:54:31 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-12 14:25:31 -0400 |
commit | a2535243e0114a48a4225a38819aa7d9fdc3d02c (patch) | |
tree | 71be723031ddc9233841ce73611930213a120445 /common/image-fdt.c | |
parent | 67696abf1f84f104d29fd979612adec5022a89f3 (diff) | |
download | u-boot-a2535243e0114a48a4225a38819aa7d9fdc3d02c.tar.gz |
lib: optee: migration optee_copy_fdt_nodes for OF_LIVE support
The optee_copy_fdt_nodes is only used to copy op-tee nodes
of U-Boot device tree (from gd->fdt_blob when OF_LIVE is not activated)
to external device tree but it is not compatible with OF_LIVE.
This patch migrates all used function fdt_ functions to read node on
old_blob to ofnode functions, compatible with OF_LIVE and remove this
parameter "old_blob".
The generated "device tree" is checked on stm32mp platform with OF_LIVE
activated.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'common/image-fdt.c')
-rw-r--r-- | common/image-fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c index a287b66392..d50e1ba3fe 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -562,7 +562,7 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob, goto err; } - fdt_ret = optee_copy_fdt_nodes(gd->fdt_blob, blob); + fdt_ret = optee_copy_fdt_nodes(blob); if (fdt_ret) { printf("ERROR: transfer of optee nodes to new fdt failed: %s\n", fdt_strerror(fdt_ret)); |