mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-24 20:13:39 +00:00
33a909a42a
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>
14 lines
439 B
C
14 lines
439 B
C
/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
|
|
/*
|
|
* Copyright (C) 2020, STMicroelectronics - All Rights Reserved
|
|
*/
|
|
|
|
/* check self hosted debug status = BSEC_DENABLE.DBGSWENABLE */
|
|
bool bsec_dbgswenable(void);
|
|
|
|
/* Bitfield definition for LOCK status */
|
|
#define BSEC_LOCK_PERM BIT(30)
|
|
#define BSEC_LOCK_SHADOW_R BIT(29)
|
|
#define BSEC_LOCK_SHADOW_W BIT(28)
|
|
#define BSEC_LOCK_SHADOW_P BIT(27)
|
|
#define BSEC_LOCK_ERROR BIT(26)
|