From b78896348d4846db76d394c5d1225e00a08afcad Mon Sep 17 00:00:00 2001 From: John Su Date: Tue, 4 Mar 2025 18:23:06 +0800 Subject: [PATCH] ec/google/chromeec/acpi: Add support for Body Detect The EC code will monitor Body to choose corresponding DPTF oem variable table. When it changes, this event will send to the ACPI FW through host event and then pass onto the DPTF kernel driver. BUG=b:394177292 BRANCH=firmware-trulo-15217.771.B TEST=emerge-nissa coreboot Change-Id: I7ed72157d3480fca5fd1a58b5d9bc3e321f4a628 Signed-off-by: John Su Reviewed-on: https://review.coreboot.org/c/coreboot/+/86707 Tested-by: build bot (Jenkins) Reviewed-by: Dtrain Hsu Reviewed-by: Eric Lai Reviewed-by: Kapil Porwal --- src/ec/google/chromeec/acpi/ec.asl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 8e241fcfe1..ebba0faffd 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -196,6 +196,11 @@ Device (EC0) \_SB.DPTC() } #endif + +#ifdef DPTF_FEATURE_DYNAMIC_THERMAL_TABLE_SWITCH + \_SB.DPTF.ODUP(0, STTB) + Notify (\_SB.DPTF, INT3400_ODVP_CHANGED) +#endif } /* Read requested temperature and check against EC error values */ @@ -472,6 +477,11 @@ Device (EC0) \_SB.DPTC() } #endif + +#ifdef DPTF_FEATURE_DYNAMIC_THERMAL_TABLE_SWITCH + \_SB.DPTF.ODUP(0, STTB) + Notify (\_SB.DPTF, INT3400_ODVP_CHANGED) +#endif } /*