u-boot/arch/arm/mach-stm32mp
Patrick Delaunay 80cfc6c692 stm32mp: cmd_stm32key: add subcommand close
The expected sequence to close the device

1/ Load key in DDR with any supported load command
2/ Update OTP with key: STM32MP> stm32key read <addr>

At this point the device is able to perform image authentication but
non-authenticated images can still be used and executed.
So it is the last moment to test boot with signed binary and
check that the ROM code accepts them.

3/ Close the device: only signed binary will be accepted !!
   STM32MP> stm32key close

Warning: Programming these OTP is an irreversible operation!
         This may brick your system if the HASH of key is invalid

This command should be deactivated by default in real product.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2021-07-16 09:28:46 +02:00
..
cmd_stm32prog stm32mp: stm32prog: fix the content of short help message 2021-07-16 09:28:46 +02:00
include/mach arm: stm32: cleanup arch gpio.h 2020-10-21 18:12:20 +02:00
boot_params.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bsec.c stm32mp: bsec: manage clock when present in device tree 2021-03-11 17:50:10 +01:00
cmd_stm32key.c stm32mp: cmd_stm32key: add subcommand close 2021-07-16 09:28:46 +02:00
config.mk Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
cpu.c stm32mp: don't map the reserved region with no-map property 2021-06-07 10:48:40 -04:00
dram_init.c stm32mp: Increase the reserved memory in board_get_usable_ram_top 2021-06-07 10:48:40 -04:00
fdt.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Kconfig stm32mp: configs: activate the command stm32key only for ST boards 2021-07-16 09:28:46 +02:00
Makefile stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB 2021-03-11 17:41:17 +01:00
psci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pwr_regulator.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
spl.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
syscon.c stm32mp1: pwr: use the last binding for pwr 2020-02-13 17:26:22 +01:00