From 39b44d35455b56ec266b961881d46d1a720ebeed Mon Sep 17 00:00:00 2001 From: Owen_Ou Date: Tue, 11 May 2021 13:19:34 +0800 Subject: Guybrush: Modify thermal_params and fan_rpm Modify Guybrush's thermal_params in SoC and memory. Add Guybrush's thermal_params in CPU. And also modify Guybrush's fan_rpm BUG=b:187236086 BRANCH=none TEST=Change SoC and memory and CPU temperature value look ec console trigger evet in thermal program. And use ec console's 'fanduty' and 'faninfo' look fan's rpm Signed-off-by: Owen_Ou Change-Id: I3a89d8c02a21b342c13e9c2cbe571d0cc76af10d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2886472 Tested-by: Owen Ou Tested-by: Elthan Huang Reviewed-by: Diana Z Reviewed-by: Elthan Huang Auto-Submit: Owen Ou Commit-Queue: Owen Ou --- baseboard/guybrush/baseboard.c | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) (limited to 'baseboard') diff --git a/baseboard/guybrush/baseboard.c b/baseboard/guybrush/baseboard.c index 972e1c96d6..51f8e44f35 100644 --- a/baseboard/guybrush/baseboard.c +++ b/baseboard/guybrush/baseboard.c @@ -221,20 +221,20 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); struct ec_thermal_config thermal_params[TEMP_SENSOR_COUNT] = { [TEMP_SENSOR_SOC] = { .temp_host = { - [EC_TEMP_THRESH_HIGH] = C_TO_K(90), - [EC_TEMP_THRESH_HALT] = C_TO_K(92), + [EC_TEMP_THRESH_HIGH] = C_TO_K(100), + [EC_TEMP_THRESH_HALT] = C_TO_K(105), }, .temp_host_release = { [EC_TEMP_THRESH_HIGH] = C_TO_K(80), }, /* TODO: Setting fan off to 0 so it's allways on */ .temp_fan_off = C_TO_K(0), - .temp_fan_max = C_TO_K(75), + .temp_fan_max = C_TO_K(70), }, [TEMP_SENSOR_CHARGER] = { .temp_host = { - [EC_TEMP_THRESH_HIGH] = C_TO_K(90), - [EC_TEMP_THRESH_HALT] = C_TO_K(92), + [EC_TEMP_THRESH_HIGH] = C_TO_K(100), + [EC_TEMP_THRESH_HALT] = C_TO_K(105), }, .temp_host_release = { [EC_TEMP_THRESH_HIGH] = C_TO_K(80), @@ -244,8 +244,19 @@ struct ec_thermal_config thermal_params[TEMP_SENSOR_COUNT] = { }, [TEMP_SENSOR_MEMORY] = { .temp_host = { - [EC_TEMP_THRESH_HIGH] = C_TO_K(90), - [EC_TEMP_THRESH_HALT] = C_TO_K(92), + [EC_TEMP_THRESH_HIGH] = C_TO_K(100), + [EC_TEMP_THRESH_HALT] = C_TO_K(105), + }, + .temp_host_release = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(80), + }, + .temp_fan_off = 0, + .temp_fan_max = 0, + }, + [TEMP_SENSOR_CPU] = { + .temp_host = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(100), + [EC_TEMP_THRESH_HALT] = C_TO_K(105), }, .temp_host_release = { [EC_TEMP_THRESH_HIGH] = C_TO_K(80), @@ -253,7 +264,6 @@ struct ec_thermal_config thermal_params[TEMP_SENSOR_COUNT] = { .temp_fan_off = 0, .temp_fan_max = 0, }, - /* TODO: TEMP_SENSOR_CPU */ }; BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT); @@ -491,9 +501,9 @@ const struct fan_conf fan_conf_0 = { .enable_gpio = -1, }; const struct fan_rpm fan_rpm_0 = { - .rpm_min = 1800, - .rpm_start = 3000, - .rpm_max = 5200, + .rpm_min = 1000, + .rpm_start = 1000, + .rpm_max = 6500, }; const struct fan_t fans[] = { [FAN_CH_0] = { -- cgit v1.2.1