summaryrefslogtreecommitdiff
path: root/include/system.h
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-05-26 14:10:22 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-06-19 21:03:30 -0700
commitcdaca7c97eaefe93ab3a0148a954b2f139f5caad (patch)
tree7628f281393c06dbc653732f4b8a71477cdd9378 /include/system.h
parent5ce3d325381f2f3bce0be4a83454944271c3b27c (diff)
downloadchrome-ec-cdaca7c97eaefe93ab3a0148a954b2f139f5caad.tar.gz
Add system_can_boot_ap API
This API checks battery charge level and current power supply to determine whether the AP has enough power to boot or not. BUG=b:38462249 BRANCH=none TEST=make buildall Change-Id: I489f7ea92f230701b8f18c94d3e698aad90b4a03 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/517272
Diffstat (limited to 'include/system.h')
-rw-r--r--include/system.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h
index f40feb0e37..10c10ccf52 100644
--- a/include/system.h
+++ b/include/system.h
@@ -529,4 +529,12 @@ static inline void system_print_extended_version_info(void)
{
}
#endif
+
+/**
+ * Check if the system can supply enough power to boot AP
+ *
+ * @return true if the system is powered enough or false otherwise
+ */
+int system_can_boot_ap(void);
+
#endif /* __CROS_EC_SYSTEM_H */