summaryrefslogtreecommitdiff
path: root/test/test_config.h
diff options
context:
space:
mode:
authorTang Qijun <qijun.tang@ecs.corp-partner.google.com>2021-09-09 01:22:28 -0400
committerCommit Bot <commit-bot@chromium.org>2021-10-07 15:55:01 +0000
commit14891fcf8ac0ac2e1c72f5d22321c6b077ab2e53 (patch)
tree3a9987bf6d407e70f8918e47dfe99bc50b02266f /test/test_config.h
parent234e646fd807dc60f9af78c80db3edf8d5f93cee (diff)
downloadchrome-ec-14891fcf8ac0ac2e1c72f5d22321c6b077ab2e53.tar.gz
chgstv2: Implement battery protection for low voltage
Deep charge inspection is a battery protection mechanism: If battery voltage is lower than 6V, deep charge for more than 30 minutes The battery voltage is still lower than 6V, the system will stop charging BRANCH=trogdor BUG=b:198226241 TEST=run-sbs_charging_v2 Signed-off-by: Tang Qijun <qijun.tang@ecs.corp-partner.google.com> Change-Id: I89adf7809992b9e71b232ad1129af1407acf05a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3151037 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'test/test_config.h')
-rw-r--r--test/test_config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_config.h b/test/test_config.h
index 5afc5d1282..a60393dc42 100644
--- a/test/test_config.h
+++ b/test/test_config.h
@@ -282,6 +282,9 @@ int board_discharge_on_ac(int enabled);
#define I2C_PORT_MASTER 0
#define I2C_PORT_BATTERY 0
#define I2C_PORT_CHARGER 0
+#define CONFIG_BATTERY_LOW_VOLTAGE_PROTECTION
+#undef CONFIG_BATTERY_LOW_VOLTAGE_TIMEOUT
+#define CONFIG_BATTERY_LOW_VOLTAGE_TIMEOUT (2*SECOND)
#endif
#ifdef TEST_THERMAL