From 7bb63fd17c2329b1a1fbb0cb52c4b46d9f6b9a31 Mon Sep 17 00:00:00 2001 From: Divya Sasidharan Date: Tue, 14 Mar 2017 15:40:26 -0700 Subject: [PATCH] poppy: Enable config flags to boot up without battery With this change when external power adapter is plugged in without a battery it will not prevent power on if there is enough power. BUG=b:35775049 BRANCH=None TEST=On poppy: unplug battery, connect external power adapter and the board should boot up. Change-Id: I533ab6a5de5ebc17f6c05c772db742489a44c327 Signed-off-by: Divya Sasidharan Reviewed-on: https://chromium-review.googlesource.com/455277 Commit-Ready: Divya S Sasidharan Tested-by: Divya S Sasidharan Reviewed-by: Vijay P Hiremath Reviewed-by: Nicolas Boichat --- board/poppy/board.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/poppy/board.h b/board/poppy/board.h index ebd2e9b58b..ec9dde37df 100644 --- a/board/poppy/board.h +++ b/board/poppy/board.h @@ -68,6 +68,8 @@ #define CONFIG_CHARGER_ISL9238 #define CONFIG_CHARGER_DISCHARGE_ON_AC #define CONFIG_CHARGER_INPUT_CURRENT 512 +#define CONFIG_CHARGER_LIMIT_POWER_THRESH_CHG_MW 15000 +#define CONFIG_CHARGER_LIMIT_POWER_THRESH_BAT_PCT 1 #define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 1 #define CONFIG_CHARGER_NARROW_VDC #define CONFIG_CHARGER_PROFILE_OVERRIDE