From 42ac79c29729f6284df980d47901c349c3646b63 Mon Sep 17 00:00:00 2001 From: Diana Z Date: Fri, 3 May 2019 15:57:49 -0600 Subject: Casta: Adjust charger configs for low battery booting When a locked system boots up with a very low or non-communicating battery, the DUT should refrain from booting S0 in order to avoid hard reset brown outs after the system jumps to RW and begins attempting PD negotiation. BUG=b:131126731 BRANCH=octopus TEST=loaded onto locked casta with low battery, verified that the system didn't boot to S0 until the battery had passed the min battery percent configuration Change-Id: I64736eb1d39883cd95a5e317b1f964354e6f8e41 Signed-off-by: Diana Z Reviewed-on: https://chromium-review.googlesource.com/1595272 Tested-by: YongBeum.Ha Legacy-Commit-Queue: Commit Bot Reviewed-by: Jett Rink Reviewed-by: YongBeum.Ha --- board/casta/board.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'board/casta') diff --git a/board/casta/board.h b/board/casta/board.h index be9192ea3b..8cf02cd1d8 100644 --- a/board/casta/board.h +++ b/board/casta/board.h @@ -25,6 +25,15 @@ #define CONFIG_TEMP_SENSOR #define CONFIG_THERMISTOR +/* + * Don't allow the system to boot to S0 when the battery is low and unable to + * communicate on locked systems (which haven't PD negotiated) + */ +#define CONFIG_CHARGER_MIN_POWER_MW_FOR_POWER_ON_WITH_BATT 15000 +#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON_WITH_AC 1 + +#define CONFIG_CHARGER_MIN_POWER_MW_FOR_POWER_ON 15001 + /* Keyboard Backlight is unconnected in casta proto */ #undef CONFIG_PWM #undef CONFIG_PWM_KBLIGHT -- cgit v1.2.1