summaryrefslogtreecommitdiff
path: root/board/magolor
diff options
context:
space:
mode:
authorBen Chen <ben.chen2@quanta.corp-partner.google.com>2021-01-12 13:15:51 +0800
committerCommit Bot <commit-bot@chromium.org>2021-01-13 02:27:57 +0000
commit4944a6407d23214212e12c49a972ecbd6a44aaea (patch)
tree39435e3acc187c65c95befe2ac1953355b5e25da /board/magolor
parent7a2c04d5bf927e67613a30bd50147fb92d03149d (diff)
downloadchrome-ec-4944a6407d23214212e12c49a972ecbd6a44aaea.tar.gz
magolor: add thermal table
Add setup_thermal for setting thermal table BUG=b:168353037 BRANCH=master TEST=thermal team verify value on AP Change-Id: I933849c6076d6799f633ffb24d440e43ffe1b0fc Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2623878 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Henry Sun <henrysun@google.com> Tested-by: Henry Sun <henrysun@google.com>
Diffstat (limited to 'board/magolor')
-rw-r--r--board/magolor/board.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/board/magolor/board.c b/board/magolor/board.c
index b256796d89..6aea86804a 100644
--- a/board/magolor/board.c
+++ b/board/magolor/board.c
@@ -189,8 +189,21 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
const static struct ec_thermal_config thermal_a = {
.temp_host = {
[EC_TEMP_THRESH_WARN] = 0,
+ [EC_TEMP_THRESH_HIGH] = C_TO_K(70),
+ [EC_TEMP_THRESH_HALT] = C_TO_K(85),
+ },
+ .temp_host_release = {
+ [EC_TEMP_THRESH_WARN] = 0,
+ [EC_TEMP_THRESH_HIGH] = C_TO_K(65),
+ [EC_TEMP_THRESH_HALT] = 0,
+ },
+};
+
+const static struct ec_thermal_config thermal_b = {
+ .temp_host = {
+ [EC_TEMP_THRESH_WARN] = 0,
[EC_TEMP_THRESH_HIGH] = C_TO_K(73),
- [EC_TEMP_THRESH_HALT] = C_TO_K(80),
+ [EC_TEMP_THRESH_HALT] = C_TO_K(85),
},
.temp_host_release = {
[EC_TEMP_THRESH_WARN] = 0,
@@ -204,7 +217,7 @@ struct ec_thermal_config thermal_params[TEMP_SENSOR_COUNT];
static void setup_thermal(void)
{
thermal_params[TEMP_SENSOR_1] = thermal_a;
- thermal_params[TEMP_SENSOR_2] = thermal_a;
+ thermal_params[TEMP_SENSOR_2] = thermal_b;
}
void board_init(void)