diff options
author | Diana Z <dzigterman@chromium.org> | 2019-05-03 15:57:49 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-05-23 15:44:54 +0000 |
commit | f37d0b316074cd48f3255a4df94c292b6f6c19af (patch) | |
tree | 2e4b04cf6ce211d28fb3f27e5c2343e0406f964f | |
parent | 8a960d0d8b939e1840a4ca274e53d6183d55f4a5 (diff) | |
download | chrome-ec-f37d0b316074cd48f3255a4df94c292b6f6c19af.tar.gz |
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 <dzigterman@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1595272
Tested-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
(cherry picked from commit 8eb7121070c4e573fd66cbaabab6f0111bcffcb0)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1626891
Reviewed-by: YongBeum Ha <ybha@samsung.com>
Tested-by: YongBeum Ha <ybha@samsung.com>
-rw-r--r-- | board/casta/board.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/casta/board.h b/board/casta/board.h index 54ef2c25c3..bf75d64a76 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 |