]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib: optee: migration optee_copy_fdt_nodes for OF_LIVE support
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 8 Feb 2021 12:54:31 +0000 (13:54 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 12 Apr 2021 18:25:31 +0000 (14:25 -0400)
commita2535243e0114a48a4225a38819aa7d9fdc3d02c
tree71be723031ddc9233841ce73611930213a120445
parent67696abf1f84f104d29fd979612adec5022a89f3
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>
common/image-fdt.c
include/tee/optee.h
lib/optee/optee.c