u-boot/arch/arm/mach-stm32mp/include/mach
Igor Opaniuk c205fe979e stm32mp1: read auth stats and boot_partition from tamp
Obtain from TAMP backup register information about image authorization
status and partition id used for booting. Store this info in
environmental variables ("boot_auth" and "boot_part" correspondingly).

Image authorization supported values:
0x0 - No authentication done
0x1 - Authentication done and failed
0x2 - Authentication done and succeeded

These values are stored to TAMP backup register by Trusted Firmware-A [1].

Testing:
STM32MP> print boot_part
boot_part=1
STM32MP> print boot_auth
boot_auth=2

[1] https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/commit/?h=refs/heads/integration&id=ab2b325c1ab895e626d4e11a9f26b9e7c968f8d8

Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Co-developed-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2023-11-10 13:34:10 +01:00
..
bsec.h stm32mp: Add OP-TEE support in bsec driver 2023-01-12 16:37:13 +01:00
ddr.h ram: stm32mp1: increase vdd2_ddr: buck2 for 32bits LPDDR 2020-03-24 14:20:50 +01:00
stm32.h stm32mp1: read auth stats and boot_partition from tamp 2023-11-10 13:34:10 +01:00
stm32mp1_smc.h common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
stm32prog.h stm32mp: stm32prog: Remove tee_detected from stm32prog_data struct 2023-06-16 11:01:16 +02:00
sys_proto.h stm32mp1: read auth stats and boot_partition from tamp 2023-11-10 13:34:10 +01:00
tzc.h arm: stm32mp: Implement support for TZC 400 controller 2021-07-27 09:48:09 +02:00