]> git.baikalelectronics.ru Git - uboot.git/commit
stm32mp: Add OP-TEE support in bsec driver
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 6 Jan 2023 12:20:15 +0000 (13:20 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 12 Jan 2023 15:37:13 +0000 (16:37 +0100)
commit39bc96828d3d1e51b22faa30d5e7a5dbe88902ba
treeb61535ae15ac787b9ead08a50b5079526359515c
parent68afb068d2edd92e98c54d118d06e48835be2695
stm32mp: Add OP-TEE support in bsec driver

When OP-TEE is used, the SMC for BSEC management are not available and
the STM32MP BSEC pseudo TA must be used (it is mandatory for STM32MP13
and it is a new feature for STM32MP15x).

The BSEC driver try to open a session to this PTA BSEC at probe
and use it for OTP read or write access to fuse or to shadow.

This patch also adapts the commands stm32key and stboard to handle
the BSEC_LOCK_PERM lock value instead of 1.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/bsec.c
arch/arm/mach-stm32mp/cmd_stm32key.c
arch/arm/mach-stm32mp/include/mach/bsec.h
board/st/common/cmd_stboard.c
doc/board/st/stm32mp1.rst