summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjames_chao <james_chao@asus.com>2016-03-05 02:48:09 +0800
committerChromeOS bot <3su6n15k.default@developer.gserviceaccount.com>2016-03-04 19:16:09 +0000
commit5c3eb68d080102ae81ec9e6627f38c5a473747b1 (patch)
treee7819d3195072ecc5c49771383e32d48725b0cc9
parentb0afd60f2f83ea11b7b940d444ffbe6a74f43cf3 (diff)
downloadchrome-ec-5c3eb68d080102ae81ec9e6627f38c5a473747b1.tar.gz
Terra: set CONFIG_BATTERY_LEVEL_NEAR_FULL is 96%
The gauge ic of terra is enable charge when rsoc <= 95% and the BATTERY_LEVEL_NEAR_FULL is 97%, so when the battery is 96%, the charge LED is amber, but do not charge the battery. This commit change the threshold of amber led to 96% when battery rsoc >= 96, the led is green, when battery rsoc < 96, the led is amber, match the actually charge behavior. BUG=none BRANCH=remotes/cros/firmware-strago-7287.B TEST=Charge full the DUT, keep adapter, wait for rsoc=96%, the charge led should be green. Change-Id: I511ec585d6db98f0a9bd2c35a3f7b4969d8d0030 Signed-off-by: james_chao <james_chao@asus.com> Reviewed-on: https://chromium-review.googlesource.com/330550 Reviewed-by: Shawn N <shawnn@chromium.org> (cherry picked from commit ca772e8c479cf4a1be011b7e900040f68b6e8024) Reviewed-on: https://chromium-review.googlesource.com/330580
-rw-r--r--board/terra/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/terra/board.h b/board/terra/board.h
index 22527f0032..ca88109746 100644
--- a/board/terra/board.h
+++ b/board/terra/board.h
@@ -53,6 +53,8 @@
#define CONFIG_PMIC
#define CONFIG_BATTERY_CUT_OFF
+#undef CONFIG_BATTERY_LEVEL_NEAR_FULL
+#define CONFIG_BATTERY_LEVEL_NEAR_FULL 96
#define CONFIG_BATTERY_PRESENT_GPIO GPIO_BAT_PRESENT_L
#define CONFIG_BATTERY_SMART
#define CONFIG_CHARGER