summaryrefslogtreecommitdiff
path: root/include/charge_state.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-12-15 08:45:54 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-15 22:44:28 +0000
commitfca4977983cb6082047321c935e5efa64f9f5bdb (patch)
treede5919c4048b55782b005c2cfc0c7e5cea1203e8 /include/charge_state.h
parent6cc992c3d703ecee5e44966a2a3f6580e85b60c3 (diff)
downloadchrome-ec-fca4977983cb6082047321c935e5efa64f9f5bdb.tar.gz
samus: add high battery temp warning to charge state machine
Add high (and low) battery temperature warning which sends host event to AP. After 30 seconds of out of range temp readings force shut off AP and hibernate the EC. BUG=chrome-os-partner:27641, chrome-os-partner:33111 BRANCH=samus TEST=make buildall, and write unit tests to test this condition. Change-Id: I95b7d9d753c17e4b76218a9845aa63dd1b96a500 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/235645 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/charge_state.h')
-rw-r--r--include/charge_state.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index c23e70c260..5c81decf10 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -12,6 +12,8 @@
/* Seconds after AP battery shutdown warning before we kill the AP */
#define LOW_BATTERY_SHUTDOWN_TIMEOUT 30
+#define HIGH_TEMP_SHUTDOWN_TIMEOUT 30
+
/* Seconds to spend trying to wake a non-responsive battery */
#define PRECHARGE_TIMEOUT 30