summaryrefslogtreecommitdiff
path: root/include/charge_state_v2.h
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-03-13 16:04:53 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-03-28 23:23:32 -0700
commitb3ecc19cb3029b7fd15d846fd287f09276f25838 (patch)
treeb60e13c0884b2b81a6db1c6745aac0a3e3064d4b /include/charge_state_v2.h
parent8fb18f174ce9aac91c5fc41ebe4b12c0aa746ba0 (diff)
downloadchrome-ec-b3ecc19cb3029b7fd15d846fd287f09276f25838.tar.gz
charge_state_v2: Hibernate base in S5 with no AC
Tell the base to hibernate when we are in S5, and no AC is connected. Also, wake the base when AC status changes (S5), and when the system transistions out of S5. BRANCH=none BUG=b:71874971 TEST=1. Lid EC console: apshutdown => Check that Base EC hibernates 2.a. Lid EC console: powerb; => Check that base reconnects 2.b. Connect/disconnect adapter: check that base disconnects and reconnects Change-Id: I5e9a4afc64a07ad92f37d171a78a914d26f07c8e Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/958814 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/charge_state_v2.h')
-rw-r--r--include/charge_state_v2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/charge_state_v2.h b/include/charge_state_v2.h
index 3fc9a94181..69809f4b73 100644
--- a/include/charge_state_v2.h
+++ b/include/charge_state_v2.h
@@ -89,5 +89,11 @@ int board_is_base_connected(void);
*/
void board_enable_base_power(int enable);
+/**
+ * Board-specific routine to reset the base (in case it is unresponsive, e.g.
+ * if we told it to hibernate).
+ */
+void board_base_reset(void);
+
#endif /* __CROS_EC_CHARGE_STATE_V2_H */