summaryrefslogtreecommitdiff
path: root/board/kukui/board.h
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2018-10-09 18:01:17 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-01 10:02:18 -0700
commitcad8fea56739f0050272426b7481db79cae07d73 (patch)
tree685769b726c6a10c11893f3fcfb4463611d201ef /board/kukui/board.h
parent78c4b5277f437435fafeebb79ca7d349a966177b (diff)
downloadchrome-ec-cad8fea56739f0050272426b7481db79cae07d73.tar.gz
kukui: Enable gauge_interrupt.
Kukui has a pin out from battery pack to MAX17055 to sense battery temperature. If the temp is over the limit, MAX17055 sends alert to trigger charger task in time to prevent a damaged battery. TEST=manually set temperature upper limit to 30 Celcius degree, and see that when the battery temperature reaches 30 C, GAUGE_INT_ODL is asserted, and charger_task is woken up. BUG=b:111378620 BRANCH=None Change-Id: Id0718e210c8082bb280c62545a5ec75b3db8c6c2 Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/1270403 Commit-Ready: Yilun Lin <yllin@chromium.org> Tested-by: Yilun Lin <yllin@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/kukui/board.h')
-rw-r--r--board/kukui/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/kukui/board.h b/board/kukui/board.h
index a8e386588a..48974df59c 100644
--- a/board/kukui/board.h
+++ b/board/kukui/board.h
@@ -134,6 +134,7 @@
#define CONFIG_BATTERY_PRESENT_CUSTOM
#define CONFIG_BATTERY_REVIVE_DISCONNECT
#define CONFIG_BATTERY_MAX17055
+#define CONFIG_BATTERY_MAX17055_ALERT
/* Battery parameters for max17055 ModelGauge m5 algorithm. */
#define BATTERY_MAX17055_RSENSE 5 /* m-ohm */