From a1430c340ead7cc812a64a8269b712791ae598d9 Mon Sep 17 00:00:00 2001 From: Rob Barnes Date: Mon, 13 Dec 2021 08:35:28 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60081 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel Reviewed-by: Karthik Ramasubramanian --- src/mainboard/google/guybrush/variants/baseboard/devicetree.cb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mainboard/google/guybrush/variants') diff --git a/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb b/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb index 7fb3c7e6c8..ac2856e93b 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb +++ b/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb @@ -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 -- cgit v1.2.3