summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacky Wang <jacky5_wang@pegatron.corp-partner.google.com>2021-02-22 14:15:12 +0800
committerCommit Bot <commit-bot@chromium.org>2021-02-23 02:30:47 +0000
commit5e487aaa37b4074fc4adcf3adc7be91e90268dca (patch)
tree021dea83be265605f9e0b0956aed972f2b850b93
parentb3c8abc9a71a516f6aad5759b83bfadd131c2b07 (diff)
downloadchrome-ec-5e487aaa37b4074fc4adcf3adc7be91e90268dca.tar.gz
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 <jacky5_wang@pegatron.corp-partner.google.com> Change-Id: Icaaad93cdf933f5351cda7192e4b14c90f326d35 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2710129 Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r--board/galtic/board.c34
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)