From 1e53a89f632e5384c8254f0916405d9cd19396d6 Mon Sep 17 00:00:00 2001 From: Deepika Punyamurtula Date: Fri, 12 Jun 2020 10:49:15 -0700 Subject: [PATCH] mb/google/volteer: Enable thermal sensor 4 in DPTF for volteer Enables the fourth thermal sensor for fan in DPTF for volteer BRANCH=None BUG=b:149722146 TEST= On volteer system check `cat /sys/class/thermal/thermal_zone5/type` for TSR3 Signed-off-by: Deepika Punyamurtula Change-Id: Ie11496828133aa71f1017f759516e2e5d3dff2d7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/42317 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Roy Mingi Park Reviewed-by: Wonkyu Kim --- .../baseboard/include/baseboard/acpi/dptf.asl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/mainboard/google/volteer/variants/baseboard/include/baseboard/acpi/dptf.asl b/src/mainboard/google/volteer/variants/baseboard/include/baseboard/acpi/dptf.asl index 2e59e5e395..ddf8814312 100644 --- a/src/mainboard/google/volteer/variants/baseboard/include/baseboard/acpi/dptf.asl +++ b/src/mainboard/google/volteer/variants/baseboard/include/baseboard/acpi/dptf.asl @@ -38,6 +38,16 @@ #define DPTF_TSR2_ACTIVE_AC3 42 #define DPTF_TSR2_ACTIVE_AC4 39 +#define DPTF_TSR3_SENSOR_ID 3 +#define DPTF_TSR3_SENSOR_NAME "Thermal Sensor 4" +#define DPTF_TSR3_PASSIVE 65 +#define DPTF_TSR3_CRITICAL 75 +#define DPTF_TSR3_ACTIVE_AC0 50 +#define DPTF_TSR3_ACTIVE_AC1 47 +#define DPTF_TSR3_ACTIVE_AC2 45 +#define DPTF_TSR3_ACTIVE_AC3 42 +#define DPTF_TSR3_ACTIVE_AC4 39 + #define DPTF_ENABLE_CHARGER #define DPTF_ENABLE_FAN_CONTROL @@ -91,6 +101,10 @@ Name (DART, Package () { Package () { \_SB.DPTF.TFN1, \_SB.DPTF.TSR2, 100, 90, 69, 56, 46, 36, 0, 0, 0, 0, 0 + }, + Package () { + \_SB.DPTF.TFN1, \_SB.DPTF.TSR3, 100, 90, 69, 56, 46, 36, 0, 0, + 0, 0, 0 } }) @@ -107,6 +121,9 @@ Name (DTRT, Package () { /* CPU Throttle Effect on TSR2 sensor */ Package () { \_SB.PCI0.TCPU, \_SB.DPTF.TSR2, 100, 60, 0, 0, 0, 0 }, + + /* CPU Throttle Effect on TSR3 sensor */ + Package () { \_SB.PCI0.TCPU, \_SB.DPTF.TSR3, 100, 60, 0, 0, 0, 0 }, }) Name (MPPC, Package ()