mb/google/guybrush: Set TPM to to be kernel power managed.

Set TPM power_managed_mode to TPM_KERNEL_POWER_MANAGED. This will cause
the TPM kernel driver to send a shutdown command before s0i3 entry. This
change depends on S0i3 verstage running and reinitializing the TPM.

BUG=b:200578885
BRANCH=None
TEST=TPM shutdown sent during s0i3 entry on guybrush

Change-Id: I206022cc2a29690186206966c5d45bd55c303248
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60081
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
Rob Barnes 2021-12-13 08:35:28 -07:00 committed by Felix Held
parent 540951e374
commit a1430c340e
1 changed files with 2 additions and 0 deletions

View File

@ -342,6 +342,8 @@ chip soc/amd/cezanne
register "hid" = ""GOOG0005""
register "desc" = ""Cr50 TPM""
register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_85)"
register "power_managed_mode" = "CONFIG(PSP_S0I3_RESUME_VERSTAGE) ?
TPM_KERNEL_POWER_MANAGED : TPM_DEFAULT_POWER_MANAGED"
device i2c 50 alias cr50 on end
end
end