u-boot/arch/arm/mach-stm32mp
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
..
cmd_stm32prog common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
include/mach stm32mp1: read auth stats and boot_partition from tamp 2023-11-10 13:34:10 +01:00
boot_params.c treewide: unify the linker symbol reference format 2023-08-09 09:21:42 -04:00
bsec.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
cmd_stm32key.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
cpu.c stm32mp1: read auth stats and boot_partition from tamp 2023-11-10 13:34:10 +01:00
dram_init.c common: return type board_get_usable_ram_top 2023-08-15 18:21:17 +02:00
ecdsa_romapi.c ARM: stm32: Add missing header for save_boot_params 2023-06-16 11:13:55 +02:00
fdt.c Correct SPL use of STM32MP15X_STM32IMAGE 2023-02-10 07:41:40 -05:00
Kconfig arm: stm32mp: add support of STM32MP13x 2022-06-17 09:58:21 +02:00
Kconfig.13x Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
Kconfig.15x Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
Makefile ARM: stm32: Make ECDSA authentication available to U-Boot 2023-01-13 13:46:57 +01:00
psci.c ARM: stm32: Inhibit PDDS because CSTBYDIS is set 2023-08-16 15:29:47 +02:00
pwr_regulator.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
spl.c arm: stm32mp: spl: fix function with fdt_addr_t input 2023-05-06 17:28:18 +08:00
stm32mp13x.c stm32mp: add support of STM32MP13x Rev.Y 2022-07-12 11:47:34 +02:00
stm32mp15x.c stm32mp: add support of STM32MP15x Rev.Y 2023-06-16 11:16:31 +02:00
syscon.c stm32mp: syscon: manage clock when present in device tree 2021-07-16 09:28:46 +02:00
tzc400.c arm: stm32mp: Implement support for TZC 400 controller 2021-07-27 09:48:09 +02:00