diff options
author | Diana Z <dzigterman@chromium.org> | 2019-05-03 15:57:49 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-22 15:40:04 -0700 |
commit | 42ac79c29729f6284df980d47901c349c3646b63 (patch) | |
tree | 636988b3db76822280d467ae475d3f09b2ebfb89 | |
parent | a8f20b538784156db4c57793798894bdd0f472c8 (diff) | |
download | chrome-ec-42ac79c29729f6284df980d47901c349c3646b63.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>
-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 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 |