aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2024-01-11 14:49:02 +0100
committerMichal Simek <michal.simek@amd.com>2024-01-12 09:29:32 +0100
commitef67a04e7e8c7f37594d225b0694f2e4d0bb0c0d (patch)
tree37423a33703dc5869c2adf2777568cd4d23754d2
parent4536da00e558c909fc7cc467724d599a430f412e (diff)
arm64: zynqmp: Start TPM automatically via preboot on Kria
SOMs have HW tpm but previous stages won't start it that's why start it at U-Boot which will also provide access to random generator and it's usage with KASLR. Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/dffd2ee4cf2844832ebbdabefca0099cd2629ccc.1704980933.git.michal.simek@amd.com
-rw-r--r--board/xilinx/zynqmp/zynqmp_kria.env5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/xilinx/zynqmp/zynqmp_kria.env b/board/xilinx/zynqmp/zynqmp_kria.env
index 36182f1b0d..0f940bd68f 100644
--- a/board/xilinx/zynqmp/zynqmp_kria.env
+++ b/board/xilinx/zynqmp/zynqmp_kria.env
@@ -60,7 +60,10 @@ kr260_setup=i2c dev 1 && run usb_hub_init; i2c dev 2 && run usb_hub_init;
# usb hub init with enabling PM nodes for ...
kd240_setup=i2c dev 1 && run usb_hub_init;zynqmp pmufw node 33; zynqmp pmufw node 47
+tpm_setup=tpm autostart;
+
board_setup=\
if test ${card1_name} = SCK-KV-G; then run kv260_setup; fi;\
if test ${card1_name} = SCK-KR-G; then run kr260_setup; fi;\
-if test ${card1_name} = SCK-KD-G; then run kd240_setup; fi;
+if test ${card1_name} = SCK-KD-G; then run kd240_setup; fi;\
+run tpm_setup