From 5e487aaa37b4074fc4adcf3adc7be91e90268dca Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Mon, 22 Feb 2021 14:15:12 +0800 Subject: galtic: Update EC thermal table Update EC thermal table for throttle and shutdown point. BUG=b:177628854 BRANCH=firmware-dedede-13606.B TEST=make BOARD=galtic 1. Verified pass by thermal team. Signed-off-by: Jacky Wang Change-Id: Icaaad93cdf933f5351cda7192e4b14c90f326d35 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2710129 Reviewed-by: Diana Z --- board/galtic/board.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) 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) -- cgit v1.2.1