]> git.dujemihanovic.xyz Git - u-boot.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)
commit33a909a42a07b35c78782fc4c9dbb36f066641fd
treeb61535ae15ac787b9ead08a50b5079526359515c
parent27bad4e7fcb143c80a0e9337bb7e0ee95799c9f6
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