diff options
author | mike <mike5@huaqin.corp-partner.google.com> | 2021-07-30 20:21:27 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-02 18:09:41 +0000 |
commit | 9193fc043f70b7fa657e30605ec18b1f548b2ac8 (patch) | |
tree | 7a9b1fa504275d447eb03c336fbef00f3ce4e744 | |
parent | 87165ffd56c6c1f051ddb0a184628a1789c69874 (diff) | |
download | chrome-ec-9193fc043f70b7fa657e30605ec18b1f548b2ac8.tar.gz |
storo: update EC thermal table
Update EC thermal table for throttle and shutdown point.
BUG=b:194967456
BRANCH=dedede
TEST=make BOARD=storo and verify function pass by thermal team.
Signed-off-by: mike <mike5@huaqin.corp-partner.google.com>
Change-Id: Ia5f78111c40aee613bfba5e96ce0af93cb7c81e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3062706
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r-- | board/storo/board.c | 34 | ||||
-rw-r--r-- | board/storo/board.h | 3 |
2 files changed, 37 insertions, 0 deletions
diff --git a/board/storo/board.c b/board/storo/board.c index 66cf1b1a63..33c32ee65a 100644 --- a/board/storo/board.c +++ b/board/storo/board.c @@ -866,6 +866,40 @@ const struct temp_sensor_t temp_sensors[] = { }; BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); +const static struct ec_thermal_config thermal_memory = { + .temp_host = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(70), + [EC_TEMP_THRESH_HALT] = C_TO_K(80), + }, + .temp_host_release = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(60), + }, +}; +const static struct ec_thermal_config thermal_ambient = { + .temp_host = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(85), + [EC_TEMP_THRESH_HALT] = C_TO_K(90), + }, + .temp_host_release = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(75), + }, +}; +const static struct ec_thermal_config thermal_cpu = { + .temp_host = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(85), + [EC_TEMP_THRESH_HALT] = C_TO_K(90), + }, + .temp_host_release = { + [EC_TEMP_THRESH_HIGH] = C_TO_K(75), + }, +}; +struct ec_thermal_config thermal_params[] = { + [TEMP_SENSOR_1] = thermal_memory, + [TEMP_SENSOR_2] = thermal_ambient, + [TEMP_SENSOR_3] = thermal_cpu, +}; +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) diff --git a/board/storo/board.h b/board/storo/board.h index a89bde6fcf..37a89a94a5 100644 --- a/board/storo/board.h +++ b/board/storo/board.h @@ -88,6 +88,9 @@ #define CONFIG_TEMP_SENSOR #define CONFIG_THERMISTOR #define CONFIG_STEINHART_HART_3V3_51K1_47K_4050B +#define CONFIG_THROTTLE_AP +#define CONFIG_CMD_APTHROTTLE +#define CONFIG_CHIPSET_CAN_THROTTLE /* USB Mux and Retimer */ #define CONFIG_USB_MUX_IT5205 /* C1: ITE Mux */ |