diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2021-06-29 11:15:55 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-01 00:35:25 +0000 |
commit | 9542864ed4b39e54cf1a65cda608099ee9e8f266 (patch) | |
tree | 4ff2604ae20df6ac9e6fd050fceeb21295c1c145 /include/config.h | |
parent | 0ed55efce6d9cf8f2831292f723206702e377fde (diff) | |
download | chrome-ec-9542864ed4b39e54cf1a65cda608099ee9e8f266.tar.gz |
battery: Set host's low battery shutdown SoC to 4%
Currently, the host's low battery shutdown SoC is 3% by default but
most boards are configured to 4%. This patch changes the default value
to 4% so that we require only minority boards to customize it.
BUG=b:191837893, b:189737806
BRANCH=None
TEST=Storo using battfake EC command.
Change-Id: I69ed5d8cc8c0d1e321d79c5eae26a9c21624a4ea
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2998509
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/config.h b/include/config.h index 1c4cde6a7d..4fab158063 100644 --- a/include/config.h +++ b/include/config.h @@ -652,20 +652,20 @@ * Thus, we set them as follows by default: * * CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON = 2 (don't boot if soc < 2%) - * CONFIG_BATT_HOST_SHUTDOWN_PERCENTAGE = 3 (shutdown if soc <= 3%) + * CONFIG_BATT_HOST_SHUTDOWN_PERCENTAGE = 4 (shutdown if soc <= 4%) * BATTERY_LEVEL_SHUTDOWN = 3 (shutdown if soc < 3%) * * This produces the following behavior: * * - If soc = 1%, system doesn't boot. User wouldn't know why. - * - If soc = 2~3%, system boots. Alert is shown. System immediately shuts down. - * - If battery discharges to 3% while the system is running, system shuts down. + * - If soc = 2~4%, system boots. Alert is shown. System immediately shuts down. + * - If battery discharges to 4% while the system is running, system shuts down. * If that happens while a user is away, they can press the power button to * learn what happened. * - If system fails to shutdown for some reason and battery further discharges * to 2%, EC will trigger shutdown. */ -#define CONFIG_BATT_HOST_SHUTDOWN_PERCENTAGE 3 /* shutdown if soc <= 3% */ +#define CONFIG_BATT_HOST_SHUTDOWN_PERCENTAGE 4 /* shutdown if soc <= 4% */ /* * Powerd's full_factor. The value comes from: |