John Su has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/86494?usp=email )
Change subject: mb/google/trulo/var/uldrenite: Support body detection to DPTF ......................................................................
mb/google/trulo/var/uldrenite: Support body detection to DPTF
Use DPTF_FEATURE_DYNAMIC_THERMAL_TABLE_SWITCH to support body detection to DPTF.
BUG=b:394177292 BRANCH=firmware-trulo-15217.771.B TEST=emerge-nissa coreboot
Change-Id: I6e98b9c3fd1b38d10a1aa7c30d5d92e1638449f2 Signed-off-by: John Su john_su@compal.corp-partner.google.com --- M src/ec/google/chromeec/acpi/ec.asl M src/mainboard/google/brya/variants/uldrenite/include/variant/ec.h 2 files changed, 15 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/86494/1
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 436207c..bae63af 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -196,6 +196,13 @@ _SB.DPTC() } #endif + +#ifdef DPTF_FEATURE_DYNAMIC_THERMAL_TABLE_SWITCH + /* Initialize body detection status to DPTF on OS startup */ + _SB.DPTF.ODUP(0, STTB) + _SB.DPTF.ODVP() + Notify (_SB.DPTF, INT3400_ODVP_CHANGED) +#endif }
/* Read requested temperature and check against EC error values */ @@ -469,6 +476,12 @@ _SB.DPTC() } #endif +#ifdef DPTF_FEATURE_DYNAMIC_THERMAL_TABLE_SWITCH + /* Initialize body detection status to DPTF on OS startup */ + _SB.DPTF.ODUP(0, STTB) + _SB.DPTF.ODVP() + Notify (_SB.DPTF, INT3400_ODVP_CHANGED) +#endif }
// Body Detect Change Event diff --git a/src/mainboard/google/brya/variants/uldrenite/include/variant/ec.h b/src/mainboard/google/brya/variants/uldrenite/include/variant/ec.h index 818cdef..c91c99b 100644 --- a/src/mainboard/google/brya/variants/uldrenite/include/variant/ec.h +++ b/src/mainboard/google/brya/variants/uldrenite/include/variant/ec.h @@ -8,4 +8,6 @@ /* Enable DPTF OEM variable */ #define DPTF_ENABLE_OEM_VARIABLES
+#define DPTF_FEATURE_DYNAMIC_THERMAL_TABLE_SWITCH + #endif