Message ID | 2c0cb3a2b27a3bf0ede75c5ccded2d086d9c62b0.1721136547.git.michal.simek@amd.com |
---|---|
State | Accepted |
Commit | b0e686ea68cdc8d53954a654f58a1dd75f7a7bb0 |
Delegated to: | Michal Simek |
Headers | show |
Series | arm64: xilinx: Describe TPM reset for Kria CCs | expand |
On 7/16/24 15:29, Michal Simek wrote: > Describe carrier card TPM reset behavior and show message about it on boot > console to let users know what to expect from it. > > Signed-off-by: Michal Simek <michal.simek@amd.com> > --- > > board/xilinx/zynqmp/zynqmp_kria.env | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/board/xilinx/zynqmp/zynqmp_kria.env b/board/xilinx/zynqmp/zynqmp_kria.env > index 69e333c53887..49ef3e7d7532 100644 > --- a/board/xilinx/zynqmp/zynqmp_kria.env > +++ b/board/xilinx/zynqmp/zynqmp_kria.env > @@ -63,10 +63,13 @@ kr260_setup=i2c dev 1 && run usb_hub_init; i2c dev 2 && run usb_hub_init; > kd240_setup=i2c dev 1 && run usb_hub_init;zynqmp pmufw node 33; zynqmp pmufw node 47 > > tpm_setup=tpm autostart; > +tpm_reset=echo "!!! For TPM reset a full power cycle or pressing the POR_B button is required !!!"; > +tpm_kv260=if test ${card1_rev} = A -o ${card1_rev} = B -o ${card1_rev} = Y -o ${card1_rev} = Z -o ${card1_rev} = 1; then run tpm_reset; fi > +tpm_kd240=if test ${card1_rev} = A; then run tpm_reset; fi > > board_setup=\ > zynqmp mmio_write 0xFFCA0010 0xfff 0; \ > -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-KV-G; then run kv260_setup; run tpm_kv260; fi;\ > +if test ${card1_name} = SCK-KR-G; then run kr260_setup; run tpm_reset; fi;\ > +if test ${card1_name} = SCK-KD-G; then run kd240_setup; run tpm_kd240; fi;\ > run tpm_setup Applied. M
diff --git a/board/xilinx/zynqmp/zynqmp_kria.env b/board/xilinx/zynqmp/zynqmp_kria.env index 69e333c53887..49ef3e7d7532 100644 --- a/board/xilinx/zynqmp/zynqmp_kria.env +++ b/board/xilinx/zynqmp/zynqmp_kria.env @@ -63,10 +63,13 @@ kr260_setup=i2c dev 1 && run usb_hub_init; i2c dev 2 && run usb_hub_init; kd240_setup=i2c dev 1 && run usb_hub_init;zynqmp pmufw node 33; zynqmp pmufw node 47 tpm_setup=tpm autostart; +tpm_reset=echo "!!! For TPM reset a full power cycle or pressing the POR_B button is required !!!"; +tpm_kv260=if test ${card1_rev} = A -o ${card1_rev} = B -o ${card1_rev} = Y -o ${card1_rev} = Z -o ${card1_rev} = 1; then run tpm_reset; fi +tpm_kd240=if test ${card1_rev} = A; then run tpm_reset; fi board_setup=\ zynqmp mmio_write 0xFFCA0010 0xfff 0; \ -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-KV-G; then run kv260_setup; run tpm_kv260; fi;\ +if test ${card1_name} = SCK-KR-G; then run kr260_setup; run tpm_reset; fi;\ +if test ${card1_name} = SCK-KD-G; then run kd240_setup; run tpm_kd240; fi;\ run tpm_setup
Describe carrier card TPM reset behavior and show message about it on boot console to let users know what to expect from it. Signed-off-by: Michal Simek <michal.simek@amd.com> --- board/xilinx/zynqmp/zynqmp_kria.env | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)