]> git.baikalelectronics.ru Git - uboot.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)
commit2e9822a95b09ab434222d82849a54bfc85fd8e23
tree71be723031ddc9233841ce73611930213a120445
parentc91d5a80c695063c6bd56fbf973aaf4e581dd06e
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