summaryrefslogtreecommitdiff
path: root/board/ampton/board.h
diff options
context:
space:
mode:
authorPatryk Duda <pdk@semihalf.com>2021-03-18 13:45:17 +0000
committerCommit Bot <commit-bot@chromium.org>2021-03-29 16:29:26 +0000
commitf4b27032e1c508b693bba1f2d6572ad14d42f319 (patch)
treed69d14be564e34efbb81417f9ada83122b7a3c44 /board/ampton/board.h
parent6f00183c755fe7c9e77adffb308626443e0b274a (diff)
downloadchrome-ec-f4b27032e1c508b693bba1f2d6572ad14d42f319.tar.gz
Use generic voltage reduce function instead of provided by board
This patch switches implementation of input voltage reduction to generic one. It removes reduce_input_voltage_when_full() function from board code and defines CONFIG_BATT_FULL_CHIPSET_OFF_INPUT_LIMIT_MV with appropriate voltage. Affected boards: - Ampton - Asurada - Cherry - Dratini - Jinlon - Liara - Nocturne BUG=b:182546058 BRANCH=none TEST=Compile firmware for affected boards. TEST=Flash EC ToT on one of affected boards. Charge battery to full. Shutdown board and check if voltage is reduced. Power on board, check if previous voltage is restored. Signed-off-by: Patryk Duda <pdk@semihalf.com> Change-Id: I8f285e75c11f84f4711d5e6a4008174b6fb639cf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2773219 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/ampton/board.h')
-rw-r--r--board/ampton/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/ampton/board.h b/board/ampton/board.h
index 69304cb7c8..c72378d625 100644
--- a/board/ampton/board.h
+++ b/board/ampton/board.h
@@ -26,6 +26,8 @@
#define CONFIG_LED_COMMON
+#define CONFIG_BATT_FULL_CHIPSET_OFF_INPUT_LIMIT_MV 5000
+
/* Sensors */
#define CONFIG_TEMP_SENSOR
#define CONFIG_THERMISTOR