summaryrefslogtreecommitdiff
path: root/board/drawcia
diff options
context:
space:
mode:
Diffstat (limited to 'board/drawcia')
-rw-r--r--board/drawcia/board.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/drawcia/board.c b/board/drawcia/board.c
index 4a012aafa8..3adcbb819a 100644
--- a/board/drawcia/board.c
+++ b/board/drawcia/board.c
@@ -424,6 +424,17 @@ void board_init(void)
}
DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
+void board_hibernate(void)
+{
+ /*
+ * Put all charger ICs present into low power mode before entering
+ * z-state.
+ */
+ sm5803_hibernate(CHARGER_PRIMARY);
+ if (board_get_charger_chip_count() > 1)
+ sm5803_hibernate(CHARGER_SECONDARY);
+}
+
__override void board_ocpc_init(struct ocpc_data *ocpc)
{
/* There's no provision to measure Isys */