summaryrefslogtreecommitdiff
path: root/board/careena/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/careena/board.c')
-rw-r--r--board/careena/board.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/board/careena/board.c b/board/careena/board.c
index 4e601ba532..c8236ea12b 100644
--- a/board/careena/board.c
+++ b/board/careena/board.c
@@ -15,6 +15,7 @@
#include "pwm.h"
#include "pwm_chip.h"
#include "switch.h"
+#include "thermal.h"
#include "gpio_list.h"
@@ -46,6 +47,22 @@ const struct pwm_t pwm_channels[] = {
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
+struct ec_thermal_config thermal_params[TEMP_SENSOR_COUNT] = {
+ [TEMP_SENSOR_SOC] = {
+ .temp_host = {
+ [EC_TEMP_THRESH_WARN] = 0,
+ [EC_TEMP_THRESH_HIGH] = C_TO_K(74),
+ [EC_TEMP_THRESH_HALT] = C_TO_K(79),
+ },
+ .temp_host_release = {
+ [EC_TEMP_THRESH_WARN] = 0,
+ [EC_TEMP_THRESH_HIGH] = C_TO_K(71),
+ [EC_TEMP_THRESH_HALT] = 0,
+ },
+ },
+};
+BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT);
+
#ifdef CONFIG_KEYBOARD_FACTORY_TEST
/*
* We have total 24 pins for keyboard connecter, {-1, -1} mean