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-08-02 03:15:52 +0000 |
commit | a458cfe4c6b0eb6b401278ff69167304078f323a (patch) | |
tree | d07ba22878dea150b34152c8af50b9ffd2865a6f | |
parent | e6474e79cc7efdc0345b90a57eb4ce557b716f3f (diff) | |
download | chrome-ec-a458cfe4c6b0eb6b401278ff69167304078f323a.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>
(cherry picked from commit 2b645cccf591967902a359de5b0a3d74f5842580)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058158
-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 d0daf7a4d5..5ecb2b97a0 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: |