summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2021-06-29 11:15:55 -0700
committerCommit Bot <commit-bot@chromium.org>2022-02-21 07:48:58 +0000
commita39950f0fad6dbab6e05866f2c1d677d80780cd3 (patch)
tree0d455b44e03d8a25ccca17898e3ce2de3033c57c
parent62aa7e97ce86e1beb3b41a5232402b83fa41a6f9 (diff)
downloadchrome-ec-a39950f0fad6dbab6e05866f2c1d677d80780cd3.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> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3340215 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3469846
-rw-r--r--include/config.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/config.h b/include/config.h
index 57c0523366..5b260ea827 100644
--- a/include/config.h
+++ b/include/config.h
@@ -456,20 +456,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: