diff options
author | Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> | 2021-07-02 19:07:07 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-05 09:29:34 +0000 |
commit | e20f303d8fd9410b6650e403c24dc1e052b7c255 (patch) | |
tree | f887c3d7e20826a70721427e34ebdfd2250bc61b | |
parent | 43256407e1f178e4a390a8001946c17a5465f5d3 (diff) | |
download | chrome-ec-e20f303d8fd9410b6650e403c24dc1e052b7c255.tar.gz |
Jelboz/Jelboz360: Modity EC thermal config.
Modify EC thermal config by thermal team request.
sensor 0/1 throttle temperature 72 degree and release 67 degree.
sensor 0/1 shutdown temperature 80 degree.
BUG=b:192635486
BRANCH=zork
TEST=Using command "ectool thermalget" check params
Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com>
Change-Id: Id2d68f2897a48a71e1407ffd1250d05b0926a176
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3003029
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
(cherry picked from commit 4374e3a112cec93671cede4277252dd51f485740)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3004294
Reviewed-by: Isaac Lee <isaaclee@google.com>
Commit-Queue: Isaac Lee <isaaclee@google.com>
-rw-r--r-- | board/shuboz/board.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/shuboz/board.c b/board/shuboz/board.c index c3fefda00e..8be2644e93 100644 --- a/board/shuboz/board.c +++ b/board/shuboz/board.c @@ -34,6 +34,7 @@ #include "system.h" #include "tablet_mode.h" #include "task.h" +#include "thermal.h" #include "usb_charge.h" #include "usb_pd_tcpm.h" #include "usbc_ppc.h" @@ -565,6 +566,14 @@ static void setup_fw_config(void) ioex_enable_interrupt(IOEX_USB_C0_SBU_FAULT_ODL); ioex_enable_interrupt(IOEX_USB_C1_SBU_FAULT_DB_ODL); + /* Config Thermal params */ + thermal_params[0].temp_host[EC_TEMP_THRESH_HIGH] = C_TO_K(72); + thermal_params[0].temp_host[EC_TEMP_THRESH_HALT] = C_TO_K(80); + thermal_params[0].temp_host_release[EC_TEMP_THRESH_HIGH] = C_TO_K(67); + thermal_params[1].temp_host[EC_TEMP_THRESH_HIGH] = C_TO_K(72); + thermal_params[1].temp_host[EC_TEMP_THRESH_HALT] = C_TO_K(80); + thermal_params[1].temp_host_release[EC_TEMP_THRESH_HIGH] = C_TO_K(67); + if (ec_config_has_lid_angle_tablet_mode()) { setup_base_gyro_config(); /* Enable Gyro interrupts */ |