[PATCH master] nvmem: bsec: make OP-TEE TA interaction optional

Ahmad Fatoum a.fatoum at pengutronix.de
Fri May 24 03:35:14 PDT 2024


When targeting older OP-TEE versions, a PTA for BSEC access may not be
available. Allow disabling STM32_BSEC_OPTEE_TA in this case, so the
driver falls back to the secure monitor call silicon provider service.

Reported-by: Xogium <contact at xogium.me>
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/nvmem/Kconfig | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
index 255198b2ad81..349471ce3932 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -91,10 +91,13 @@ config STM32_BSEC_WRITE
 	    mw -l -d /dev/stm32-bsec 0x000000e8+4 0x0000bc9a
 
 config STM32_BSEC_OPTEE_TA
-	def_bool STM32_BSEC && OPTEE
+	bool "Support BSEC access over OP-TEE TA"
+	depends on STM32_BSEC && OPTEE
+	default y
 	help
 	  Say y here to enable the accesses to STM32MP SoC OTPs by the OP-TEE
-	  trusted application STM32MP BSEC.
+	  trusted application STM32MP BSEC in addition to the older SMC SiP
+	  service.
 
 config KVX_OTP_NV
 	tristate "kalray KVX OTP Non volatile regs Support"
-- 
2.39.2




More information about the barebox mailing list