From 0e729ec359be445cb478eacab23dc982a5e94000 Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Mon, 28 Jun 2021 15:22:11 -0700 Subject: keeby/dedede: Gate temp sensor access by GPIO On dedede and keeby boards, the thermistors are powered by the EC's GPIO_EN_PP3300_A pin. If the thermistors are read before they are powered then the EC may force a thermal shutdown due to the bad reading. This commit simply defines CONFIG_TEMP_SENSOR_POWER_GPIO along with a CONFIG_TEMP_SENSOR_FIRST_READ_DELAY_MS to ensure we don't get any false positive thermal shutdowns. BUG=b:192053176 BRANCH=dedede TEST=Build and flash lalala. Unplug AC charger from DUT, press refresh+power button to reset DUT, verify that DUT boots up automatically. TEST=Repeat above test with madoo. Signed-off-by: Aseda Aboagye Change-Id: I2a49e2f896c4120a8f01f440ea22c9b3763c6589 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2988364 Tested-by: Aseda Aboagye Auto-Submit: Aseda Aboagye Reviewed-by: Diana Z Commit-Queue: Diana Z --- board/storo/board.h | 1 - 1 file changed, 1 deletion(-) (limited to 'board/storo') diff --git a/board/storo/board.h b/board/storo/board.h index 87525dd071..6f6392005b 100644 --- a/board/storo/board.h +++ b/board/storo/board.h @@ -86,7 +86,6 @@ #define CONFIG_TEMP_SENSOR #define CONFIG_THERMISTOR #define CONFIG_STEINHART_HART_3V3_51K1_47K_4050B -#define CONFIG_TEMP_SENSOR_POWER_GPIO GPIO_EN_PP3300_A /* USB Mux and Retimer */ #define CONFIG_USB_MUX_IT5205 /* C1: ITE Mux */ -- cgit v1.2.1