summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Fagerburg <pfagerburg@chromium.org>2019-11-15 11:10:53 -0700
committerCommit Bot <commit-bot@chromium.org>2019-11-15 22:35:19 +0000
commitee9df081e0a16a12a344f3aa96b21a4fde5b0d24 (patch)
tree0a38281ac9ffd4b9e34035246a6ed20cf68e1268
parent5e182ed5f641d42dc43fe2c897bf91d47f6470f8 (diff)
downloadchrome-ec-ee9df081e0a16a12a344f3aa96b21a4fde5b0d24.tar.gz
kohaku: enable CONFIG_BATTERY_CHECK_CHARGE_TEMP_LIMITS
Enable the CONFIG_BATTERY_CHECK_CHARGE_TEMP_LIMITS option so that when charging stops due to battery overtemperature, the battery LED will be green regardless of the state of charge of the battery. BUG=b:140596424 BRANCH=None TEST=`make -j BOARD=kohaku && ./util/flash_ec --board=kohaku` Ensure battery is not fully charged LED is blue Plug in AC adapter LED is still blue Close lid LED turns red Access EC console > batttempfake 3300 This overrides the normal temperature read and forces the value to 330.0 K, which is 56.9 C. The Kohaku battery has a maximum charge temperature of 55 C, and a maximum discharge temperature of 60 C, so this temperature is hot enough to stop charging, but not so hot that the system will shut down. LED turns green Unplug the power adapter LED turns off Plug in the power adapter LED turns green > batttempfake -1 LED turns red Unplug the power adapter LED turns off Plug in the power adapter LED turns red Unplug the power adapter LED turns off > batttempfake 3300 Plug in the power adapter LED turns green Change-Id: Ie9f5032fbb5666b02bec86d3f7f474d30e759338 Signed-off-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1919401 Reviewed-by: Scott Collyer <scollyer@chromium.org>
-rw-r--r--board/kohaku/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/kohaku/board.h b/board/kohaku/board.h
index 36b519cf0b..135ad10dbe 100644
--- a/board/kohaku/board.h
+++ b/board/kohaku/board.h
@@ -113,6 +113,7 @@
* for the AP is completed.
*/
#define CONFIG_CHARGER_BQ25710_IDCHG_LIMIT_MA 8192
+#define CONFIG_BATTERY_CHECK_CHARGE_TEMP_LIMITS
/* Volume Button feature */
#define CONFIG_VOLUME_BUTTONS