diff options
author | Zick Wei <zick.wei@quanta.corp-partner.google.com> | 2020-09-02 15:58:24 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-02 22:02:48 +0000 |
commit | 1d90e9b97bc5abd63c5731d6cae1862b532431a8 (patch) | |
tree | 4fc244188ddd4997a833c2957c539c15fee2a20e /board/berknip | |
parent | 68d6f6312bba98d104da56964121dcb748d30ec1 (diff) | |
download | chrome-ec-1d90e9b97bc5abd63c5731d6cae1862b532431a8.tar.gz |
berknip: not read thermistor in G3
This patch disable read thermistor:TEMP_SENSOR_5V_REGULATOR
when DUT in G3, the thermistor is powered by PP3300_A,
which is power off in G3.
BUG=none
BRANCH=zork
TEST=verify EC not read TEMP_SENSOR_5V_REGULATOR in G3
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ifdbe81c963455e941ac8e907650f21a296da39ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2389721
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'board/berknip')
-rw-r--r-- | board/berknip/board.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/berknip/board.c b/board/berknip/board.c index 6373e5c5c9..5e1e0ece7c 100644 --- a/board/berknip/board.c +++ b/board/berknip/board.c @@ -392,6 +392,10 @@ int board_get_temp(int idx, int *temp_k) channel = ADC_TEMP_SENSOR_SOC; break; case TEMP_SENSOR_5V_REGULATOR: + /* thermistor is not powered in G3 */ + if (chipset_in_state(CHIPSET_STATE_HARD_OFF)) + return EC_ERROR_NOT_POWERED; + channel = ADC_TEMP_SENSOR_5V_REGULATOR; break; default: |