summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen_Ou <Owen_Ou@compal.corp-partner.google.com>2021-05-03 17:13:10 +0800
committerCommit Bot <commit-bot@chromium.org>2021-05-17 04:46:14 +0000
commitacd8754108a3d94bc398d5a081aab40da87b5b40 (patch)
treec50fa879f97321f4aea5eb284869908a46e1f585
parentc98d0d3f19f87b46b75b4874d44d0cdb5f8fb339 (diff)
downloadchrome-ec-acd8754108a3d94bc398d5a081aab40da87b5b40.tar.gz
Mancomb: Modify thermal_params and fan_rpm
Modify Mancomb's thermal_params in SoC and memory. Add Mancomb's thermal_params in CPU. And also modify Mancomb's fan_rpm BUG=b:186728309 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: I503a4cb0928e3fb76ec1add4f820451e19897c6a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2866926 Reviewed-by: Diana Z <dzigterman@chromium.org> Auto-Submit: Owen Ou <owen_ou@compal.corp-partner.google.com> Commit-Queue: Owen Ou <owen_ou@compal.corp-partner.google.com> Tested-by: Owen Ou <owen_ou@compal.corp-partner.google.com>
-rw-r--r--baseboard/mancomb/baseboard.c28
1 files changed, 19 insertions, 9 deletions
diff --git a/baseboard/mancomb/baseboard.c b/baseboard/mancomb/baseboard.c
index 58083d606b..d5f69316dd 100644
--- a/baseboard/mancomb/baseboard.c
+++ b/baseboard/mancomb/baseboard.c
@@ -198,20 +198,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 always on */
.temp_fan_off = C_TO_K(0),
- .temp_fan_max = C_TO_K(75),
+ .temp_fan_max = C_TO_K(70),
},
[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),
@@ -230,7 +230,17 @@ struct ec_thermal_config thermal_params[TEMP_SENSOR_COUNT] = {
.temp_fan_off = 0,
.temp_fan_max = 0,
},
- /* TODO: TEMP_SENSOR_CPU */
+ [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),
+ },
+ .temp_fan_off = 0,
+ .temp_fan_max = 0,
+ },
};
BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT);
@@ -418,9 +428,9 @@ const struct fan_conf fan_conf_0 = {
};
const struct fan_rpm fan_rpm_0 = {
- .rpm_min = 1800,
- .rpm_start = 3000,
- .rpm_max = 5200,
+ .rpm_min = 1000,
+ .rpm_start = 1000,
+ .rpm_max = 4500,
};
const struct fan_t fans[] = {