summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorOwen_Ou <Owen_Ou@compal.corp-partner.google.com>2021-05-11 13:19:34 +0800
committerCommit Bot <commit-bot@chromium.org>2021-05-17 02:16:58 +0000
commit39b44d35455b56ec266b961881d46d1a720ebeed (patch)
tree79e36e03a235ad6640b489166ec7ccb0c8dfe9e2 /baseboard
parent844cb221cc3bb7002c902d11189f9d39e9615fb6 (diff)
downloadchrome-ec-39b44d35455b56ec266b961881d46d1a720ebeed.tar.gz
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 <Owen_Ou@compal.corp-partner.google.com> Change-Id: I3a89d8c02a21b342c13e9c2cbe571d0cc76af10d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2886472 Tested-by: Owen Ou <owen_ou@compal.corp-partner.google.com> Tested-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Auto-Submit: Owen Ou <owen_ou@compal.corp-partner.google.com> Commit-Queue: Owen Ou <owen_ou@compal.corp-partner.google.com>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/guybrush/baseboard.c32
1 files changed, 21 insertions, 11 deletions
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] = {