From c90eeada8ac13737a86bc9ebac9efc73dba118da Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Mon, 7 Aug 2017 13:22:44 -0700 Subject: [PATCH] poppy: Cut off critically low battery Instead of going to hibernate when the battery is critically low we should cut off power entirely. Even with the PMIC shut down the H1 chip consumes more power than is healthy when the battery is already critically low, depleting it to dangerously low voltage levels faster than it should. (Reference: https://chromium-review.googlesource.com/582543) BUG=b:64460667 BRANCH=None TEST=Manual testing to ensure that EC cuts off battery when it is critically low instead of hibernating on soraka. Change-Id: I3befd583df64c44d43d73cda69a6486219578192 Signed-off-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/605015 Reviewed-by: Aaron Durbin Reviewed-by: Nicolas Boichat --- board/poppy/board.h | 1 + 1 file changed, 1 insertion(+) diff --git a/board/poppy/board.h b/board/poppy/board.h index 2ed1c2f4c4..a1a5274bfc 100644 --- a/board/poppy/board.h +++ b/board/poppy/board.h @@ -70,6 +70,7 @@ #undef CONFIG_PECI /* Battery */ +#define CONFIG_BATTERY_CRITICAL_SHUTDOWN_CUT_OFF #define CONFIG_BATTERY_CUT_OFF #define CONFIG_BATTERY_DEVICE_CHEMISTRY "LION" #define CONFIG_BATTERY_PRESENT_GPIO GPIO_BATTERY_PRESENT_L