[PATCH] arm64: zynqmp: Start TPM automatically via preboot on Kria

Ilias Apalodimas ilias.apalodimas at linaro.org
Thu Jan 11 14:50:07 CET 2024


On Thu, 11 Jan 2024 at 15:49, Michal Simek <michal.simek at amd.com> wrote:
>
> 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.
>
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
>
>  board/xilinx/zynqmp/zynqmp_kria.env | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/board/xilinx/zynqmp/zynqmp_kria.env b/board/xilinx/zynqmp/zynqmp_kria.env
> index 36182f1b0d85..0f940bd68f89 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
> --
> 2.36.1
>

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>


More information about the U-Boot mailing list