From 09c33dd0a79f09dec7c1f28784ea1d4f4fed2f41 Mon Sep 17 00:00:00 2001 From: Logan_Liao Date: Fri, 29 Apr 2022 13:21:36 +0800 Subject: Felwinter : Correct temp_fan_off setting to make fan control normally. Atfer enter OS : DPTF control. Before OS : thermal control base on temps sensor linear control. Thermal control work abnormally because temp_fan_off is 0 in Felwinter. This patch modifies temp_fan_off value that make thermal control properly. BUG=b:229665979 BRANCH=none TEST=test Felwinter thermal control function normal. Change-Id: Icf421d1bed50bb03e344a270e277cbc09b022f6c Signed-off-by: Logan_Liao Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3615964 Commit-Queue: Logan Liao Tested-by: Logan Liao Reviewed-by: caveh jalali Reviewed-by: Ko Ko Reviewed-by: Logan Liao --- board/felwinter/sensors.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/felwinter/sensors.c b/board/felwinter/sensors.c index cfd45654b5..fd3f721947 100644 --- a/board/felwinter/sensors.c +++ b/board/felwinter/sensors.c @@ -186,7 +186,7 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); .temp_host_release = { \ [EC_TEMP_THRESH_HIGH] = C_TO_K(60), \ }, \ - .temp_fan_off = 0, \ + .temp_fan_off = C_TO_K(30), \ .temp_fan_max = C_TO_K(73), \ } __maybe_unused static const struct ec_thermal_config thermal_cpu = THERMAL_CPU; @@ -216,7 +216,7 @@ __maybe_unused static const struct ec_thermal_config thermal_cpu = THERMAL_CPU; .temp_host_release = { \ [EC_TEMP_THRESH_HIGH] = C_TO_K(50), \ }, \ - .temp_fan_off = 0, \ + .temp_fan_off = C_TO_K(30), \ .temp_fan_max = C_TO_K(63), \ } __maybe_unused static const struct ec_thermal_config thermal_fan = THERMAL_FAN; @@ -230,7 +230,7 @@ __maybe_unused static const struct ec_thermal_config thermal_fan = THERMAL_FAN; .temp_host_release = { \ [EC_TEMP_THRESH_HIGH] = C_TO_K(60), \ }, \ - .temp_fan_off = 0, \ + .temp_fan_off = C_TO_K(30), \ .temp_fan_max = C_TO_K(73), \ } __maybe_unused static const struct ec_thermal_config thermal_charger = -- cgit v1.2.1