summaryrefslogtreecommitdiff
path: root/include/battery.h
diff options
context:
space:
mode:
authorChromeOS Developer <dparker@chromium.org>2014-01-14 21:23:50 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-02-06 01:22:17 +0000
commitc35251d662ad91cdb680cb9de1b09c7b2d16f069 (patch)
treead0d09eac9a8a924dc6817efcd88fd5e265ea651 /include/battery.h
parent7c588a329203987af1f959d49683574a839f0a0f (diff)
downloadchrome-ec-c35251d662ad91cdb680cb9de1b09c7b2d16f069.tar.gz
Add configs for battery detect via gpio or custom function
BUG=chrome-os-partner:24649 BRANCH=baytrail TEST=Boot target device w/o battery. There should be no 30 second delay prior to boot. Change-Id: If7a60919701d1c241670d0b32e04f3e188a643f1 Signed-off-by: Dave Parker <dparker@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/182921 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/battery.h')
-rw-r--r--include/battery.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/battery.h b/include/battery.h
index b10f8904c4..7072b522ef 100644
--- a/include/battery.h
+++ b/include/battery.h
@@ -98,11 +98,13 @@ void battery_get_params(struct batt_params *batt);
void battery_vendor_params(struct batt_params *batt);
/**
- * Attempt communication with the battery.
+ * Check for presence of battery.
*
- * @return non-zero if the battery responds.
+ * @return non-zero if the battery is present. Note that the
+ * battery may not be responding on the i2c interface if it
+ * is deeply discharged.
*/
-int battery_is_connected(void);
+int battery_is_present(void);
/**
* Get battery mode.