Some K3 SoCs like J721S2, and J784S4 have a HSM (High Security Module) M4F core in the Wakeup Voltage Domain which could be used to run secure services like Authentication. Add a config option which indicates that the SoC has a HSM core and the firmware for the core is available.
Add another config option (K3_HSM_LOAD_ADDR) to specify the load address for the HSM firmware image. This address is used to build the FIT image header that places the HSM image in memory during boot. Signed-off-by: Beleswar Padhi <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Neha Malcom Francis <[email protected]> --- v6: Changelog: 1. None Link to v5: https://lore.kernel.org/all/[email protected]/ v5: Changelog: 1. Add new config option to specify the load address of HSM firmware in memory. 2. Add R/B tags. Link to v4: https://lore.kernel.org/all/[email protected]/ v4: Changelog: 1. None Link to v3: https://lore.kernel.org/all/[email protected]/ v3: Changelog: 1. Updated description of config to match with functionality. Link to v2: https://lore.kernel.org/all/[email protected]/ v2: Changelog: 1. Removed 'default = n' line from CONFIG. Link to v1: https://lore.kernel.org/all/[email protected]/ arch/arm/mach-k3/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/mach-k3/Kconfig b/arch/arm/mach-k3/Kconfig index a32ed3a9683..f7b42a4912b 100644 --- a/arch/arm/mach-k3/Kconfig +++ b/arch/arm/mach-k3/Kconfig @@ -198,6 +198,22 @@ config K3_REMOTEPROC_PRU imply REMOTEPROC_TI_PRU default y if (SOC_K3_AM642 || SOC_K3_AM654) +config K3_HSM_FW + bool "Package firmware for HSM core" + depends on (SOC_K3_J721S2 || SOC_K3_J784S4 || SOC_K3_J722S) + help + Enabling this will indicate that the system has a HSM (High Security + Module) M4 Core and the firmware for the core is available. When + enabled, the firmware for HSM core will be packaged inside tispl.bin. + +config K3_HSM_LOAD_ADDR + hex "Load address of HSM image" + depends on K3_HSM_FW + default 0x82000000 + help + The load address for the HSM image. This value is used to build the + FIT image header that places HSM image in memory. + if CPU_V7R source "arch/arm/mach-k3/r5/Kconfig" endif -- 2.34.1
