summaryrefslogtreecommitdiff
path: root/board/ampton/board.h
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2019-02-06 14:32:28 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-02-13 14:42:49 -0800
commit5ea22dcbf4c467d3610eeb7dfdddec5f8c286d4f (patch)
treeff48acdd4e8050a21c4bd19307886efd3e6128b6 /board/ampton/board.h
parent1bbeef12f7d1f4b8f56648202cfe467b53cfc6b4 (diff)
downloadchrome-ec-5ea22dcbf4c467d3610eeb7dfdddec5f8c286d4f.tar.gz
Ampton: correct thermistor reading function
The charger thermistor on ampton is tied to the PP3300_A rail, rather than the PP6000_LDO_OUT rail which bip used. As such, the charger reading does not depend on AC being present, but does depend on the A rail being enabled. BUG=None BRANCH=octopus TEST=loaded onto apel and confirmed "ectool temps all" now returns charger temperature with AC unplugged, in G3 "temps" will show the ambient and charger sensors as not powered Change-Id: I2ae03899fba8a436e34452bbc644f5e872afd408 Signed-off-by: Diana Z <dzigterman@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1457076 Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/ampton/board.h')
-rw-r--r--board/ampton/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/ampton/board.h b/board/ampton/board.h
index 76cee7f6af..bc4132385e 100644
--- a/board/ampton/board.h
+++ b/board/ampton/board.h
@@ -29,6 +29,7 @@
#define CONFIG_THERMISTOR
#define CONFIG_STEINHART_HART_3V3_51K1_47K_4050B
#define CONFIG_STEINHART_HART_3V3_13K7_47K_4050B
+#define CONFIG_TEMP_SENSOR_POWER_GPIO GPIO_EN_PP3300
#define CONFIG_ACCEL_KX022 /* Lid accel */
#define CONFIG_ACCELGYRO_BMI160 /* Base accel */