diff options
author | Zick Wei <zick.wei@quanta.corp-partner.google.com> | 2021-07-23 10:49:27 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-28 04:28:31 +0000 |
commit | 2b645cccf591967902a359de5b0a3d74f5842580 (patch) | |
tree | 15bbb5ff000b1ab4f1ecee4c3cf8e410e38125a6 /baseboard | |
parent | 375f8b16ea0e84c73f1f2ed34b04b18991cbd9d4 (diff) | |
download | chrome-ec-2b645cccf591967902a359de5b0a3d74f5842580.tar.gz |
dalboz: not read thermisotr in S5
The thermistor: TEMP_SENSOR_SOC powerd by S5 power rail,
EC will get abnormal high temperature when DUT get from G3 to S5,
we ignore thermistor temperature in S5.
BUG=none
BRANCH=zork
TEST=verify there's no shutdown/prochot message during EC power on.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ie755dfab741ce1340c75bbeb5eb53288381b1c0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3045427
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r-- | baseboard/zork/variant_dalboz.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/baseboard/zork/variant_dalboz.c b/baseboard/zork/variant_dalboz.c index 6c1af5da1f..a43518e984 100644 --- a/baseboard/zork/variant_dalboz.c +++ b/baseboard/zork/variant_dalboz.c @@ -57,6 +57,11 @@ int board_get_temp(int idx, int *temp_k) if (chipset_in_state(CHIPSET_STATE_HARD_OFF)) return EC_ERROR_NOT_POWERED; + /* adc power not ready when transition to S5 */ + if (chipset_in_or_transitioning_to_state( + CHIPSET_STATE_SOFT_OFF)) + return EC_ERROR_NOT_POWERED; + channel = ADC_TEMP_SENSOR_SOC; break; default: |