summaryrefslogtreecommitdiff
path: root/board/hatch
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2019-02-07 15:55:01 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-02-12 14:00:13 -0800
commitcde203544515d0d1fd10409431f53a28e10f39a7 (patch)
tree2c432bcf8c9f446ab6b5a8251efc370951415809 /board/hatch
parentaf64914692f5469782882157b633368b25b2e3a8 (diff)
downloadchrome-ec-cde203544515d0d1fd10409431f53a28e10f39a7.tar.gz
hatch: Use CONFIG_TEMP_SENSOR_POWER_GPIO to prevent bad temp readings
This CL adds the config option CONFIG_TEMP_SENSOR_POWER_GPIO to make sure that thermistor temperature readings are only taken when the power rail for the thermistor circuit is enabled. BRANCH=none BUG=b:123900860 TEST=Verified that the the EC console message 'thermal SHUTDOWN' no longer appears following an EC reboot as the ADC readings are now ignored if the GPIO controlling the power rail is not enabled. Change-Id: Ia6dced2f36ed6319c309868bf2d4db3493d29a01 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/1460089 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'board/hatch')
-rw-r--r--board/hatch/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/hatch/board.h b/board/hatch/board.h
index b246a51c9d..5dc6a0fb67 100644
--- a/board/hatch/board.h
+++ b/board/hatch/board.h
@@ -33,6 +33,7 @@
#define CONFIG_FANS 1
#undef CONFIG_FAN_INIT_SPEED
#define CONFIG_FAN_INIT_SPEED 50
+#define CONFIG_TEMP_SENSOR_POWER_GPIO GPIO_EN_A_RAILS
#define CONFIG_THERMISTOR
#define CONFIG_THROTTLE_AP
#define CONFIG_STEINHART_HART_3V3_51K1_47K_4050B