[PATCH 04/10] arm: stm32mp: bsec: add permanent lock support in bsec driver

Patrick DELAUNAY patrick.delaunay at st.com
Tue Mar 24 09:35:46 CET 2020


Hi,

> From: Patrick DELAUNAY <patrick.delaunay at st.com>
> Sent: mercredi 12 février 2020 19:38
> 
> Add BSEC lock access (read / write) at 0xC0000000 offset of misc driver.
> The write access only available for Trusted boot mode, based on new SMC
> STM32_SMC_WRLOCK_OTP.
> 
> With the fuse command, the permanent lock status is accessed with
> 0x10000000 offset (0xC0000000 - 0x8000000 for OTP sense/program divided by
> u32 size), for example:
> 
> Read lock status of fuse 57 (0x39)
> 
>   STM32MP> fuse sense 0 0x10000039 1
> 
>   Sensing bank 0:
> 
>   Word 0x10000039: 00000000
> 
> Set permanent lock of fuse 57 (0x39)
> 
>   STM32MP> fuse prog 0 0x10000039 1
> 
>   Sensing bank 0:
> 
>   Word 0x10000039: 00000000
> 
> WARNING: the OTP lock is updated only after reboot
> 
> WARING: Programming lock or fuses is an irreversible operation!
>         This may brick your system.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---


Applied to u-boot-stm/next, thanks!

Regards

Patrick


More information about the U-Boot mailing list