summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLouis Yung-Chieh Lo <yjlou@chromium.org>2014-04-24 13:34:59 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-04-25 03:41:58 +0000
commit3ac560d41bf8c225725cdf03c2b4f4d723739d0f (patch)
tree687b9335e739ffd62ffe910742bd8a87e987537a /include
parentb0409436adcf68cda3bf70a2964b9fdee599189a (diff)
downloadchrome-ec-3ac560d41bf8c225725cdf03c2b4f4d723739d0f.tar.gz
battery: don't talk to battery after cut-off
Add a shortcut in smart battery driver and i2c passthru. Once the battery cut-off order is submitted (in the factory line), the EC will no longer talk to battery. BUG=chrome-os-partner:28248 BRANCH=tot,nyan TEST=See below > remove AC, cutoff: expect system is off. > cutoff, then remove AC: expect system is off. > cutoff, wait for 1 min, then remove AC: expect system is off. Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org> Change-Id: Ied963c19d17d581ce99e4543469cf2fa165f0439 Reviewed-on: https://chromium-review.googlesource.com/196657 Tested-by: Yung-chieh Lo <yjlou@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Commit-Queue: Yung-chieh Lo <yjlou@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/battery.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/battery.h b/include/battery.h
index 4201d1d658..fc0c4bbcc5 100644
--- a/include/battery.h
+++ b/include/battery.h
@@ -275,4 +275,9 @@ int battery_manufacturer_date(int *year, int *month, int *day);
*/
int board_cut_off_battery(void);
+/**
+ * Return if the battery has been cut off.
+ */
+int battery_is_cut_off(void);
+
#endif /* __CROS_EC_BATTERY_H */