u-boot/arch/arm
Patrick Delaunay 7ae22d7278 arm: stm32mp: bsec: add permanent lock support in bsec driver
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@st.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
2020-03-24 14:05:35 +01:00
..
cpu
dts Merge tag 'ti-v2020.07-next' of https://gitlab.denx.de/u-boot/custodians/u-boot-ti into next 2020-03-17 11:59:58 -04:00
include dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
lib arch: arm: Fix SZ_64K undeclared compilation error 2020-02-25 11:39:54 -05:00
mach-aspeed
mach-at91
mach-bcm283x
mach-bcmstb
mach-cortina board: presidio-asic: Add basic G3 engr. development board support 2020-02-07 16:16:01 -05:00
mach-davinci mach-davinci: Hard-code the default SPL_LDSCRIPT path 2020-03-16 18:54:18 -04:00
mach-exynos
mach-highbank
mach-imx Merge tag 'ti-v2020.07-next' of https://gitlab.denx.de/u-boot/custodians/u-boot-ti into next 2020-03-17 11:59:58 -04:00
mach-integrator
mach-k3 Merge tag 'ti-v2020.07-next' of https://gitlab.denx.de/u-boot/custodians/u-boot-ti into next 2020-03-17 11:59:58 -04:00
mach-keystone
mach-kirkwood
mach-mediatek arm: mediatek: remove unused binman config 2020-03-10 17:08:13 -04:00
mach-meson
mach-mvebu dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mach-omap2 video: omap: add support for DM/DTS 2020-03-03 13:08:14 +05:30
mach-orion5x edminiv2: Move CONFIG_SPL_LDSCRIPT to defconfig 2020-03-16 18:54:18 -04:00
mach-owl
mach-qemu
mach-rmobile
mach-rockchip arch: arm: rockchip: order the rk3399 entries alphabetically 2020-02-20 09:18:14 +08:00
mach-s5pc1xx
mach-snapdragon
mach-socfpga ARM: socfpga: Add initial support for the ABB SECU board 2020-03-03 22:11:36 +01:00
mach-sti
mach-stm32
mach-stm32mp arm: stm32mp: bsec: add permanent lock support in bsec driver 2020-03-24 14:05:35 +01:00
mach-sunxi
mach-tegra dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mach-u8500
mach-uniphier ARM: uniphier: detect the base of micro support card at run-time 2020-02-28 02:40:56 +09:00
mach-versal
mach-versatile
mach-zynq dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mach-zynqmp
mach-zynqmp-r5
thumb1/include/asm/proc-armv
config.mk
Kconfig arm: mediatek: remove unused binman config 2020-03-10 17:08:13 -04:00
Kconfig.debug
Makefile