diff options
-rw-r--r-- | board/galtic/board.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/board/galtic/board.c b/board/galtic/board.c index 8eea397f0c..ce37f943bc 100644 --- a/board/galtic/board.c +++ b/board/galtic/board.c @@ -594,6 +594,40 @@ const struct temp_sensor_t temp_sensors[] = { }; BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); +const static struct ec_thermal_config thermal_charger = { + .temp_host = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(85), + [EC_TEMP_THRESH_HALT] = C_TO_K(98), + }, + .temp_host_release = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(65), + }, +}; +const static struct ec_thermal_config thermal_vcore = { + .temp_host = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(65), + [EC_TEMP_THRESH_HALT] = C_TO_K(80), + }, + .temp_host_release = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(50), + }, +}; +const static struct ec_thermal_config thermal_ambient = { + .temp_host = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(65), + [EC_TEMP_THRESH_HALT] = C_TO_K(80), + }, + .temp_host_release = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(50), + }, +}; +struct ec_thermal_config thermal_params[] = { + [TEMP_SENSOR_1] = thermal_charger, + [TEMP_SENSOR_2] = thermal_vcore, + [TEMP_SENSOR_3] = thermal_ambient, +}; +BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT); + #ifndef TEST_BUILD /* This callback disables keyboard when convertibles are fully open */ void lid_angle_peripheral_enable(int enable) |