aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-02-08 13:54:31 +0100
committerTom Rini <trini@konsulko.com>2021-04-12 14:25:31 -0400
commita2535243e0114a48a4225a38819aa7d9fdc3d02c (patch)
tree71be723031ddc9233841ce73611930213a120445 /include
parent67696abf1f84f104d29fd979612adec5022a89f3 (diff)
downloadu-boot-a2535243e0114a48a4225a38819aa7d9fdc3d02c.zip
u-boot-a2535243e0114a48a4225a38819aa7d9fdc3d02c.tar.gz
u-boot-a2535243e0114a48a4225a38819aa7d9fdc3d02c.tar.bz2
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 'include')
-rw-r--r--include/tee/optee.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tee/optee.h b/include/tee/optee.h
index affa937..ebdfe5e 100644
--- a/include/tee/optee.h
+++ b/include/tee/optee.h
@@ -71,9 +71,9 @@ static inline int optee_verify_bootm_image(unsigned long image_addr,
#endif
#if defined(CONFIG_OPTEE) && defined(CONFIG_OF_LIBFDT)
-int optee_copy_fdt_nodes(const void *old_blob, void *new_blob);
+int optee_copy_fdt_nodes(void *new_blob);
#else
-static inline int optee_copy_fdt_nodes(const void *old_blob, void *new_blob)
+static inline int optee_copy_fdt_nodes(void *new_blob)
{
return 0;
}