summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-04-10 16:35:59 -0600
committerCommit Bot <commit-bot@chromium.org>2020-04-25 04:00:04 +0000
commit84d217f113db1aab88a8a886ffaebea60b1a3ef3 (patch)
tree243724010e1e6fa11753ca7d5f9b9c5b8e91db28
parentc7cefc07e9fa93984e18b79936bdb418daca9c2d (diff)
downloadchrome-ec-84d217f113db1aab88a8a886ffaebea60b1a3ef3.tar.gz
Volteer: enable battery options
Volteer design provides an EC input to check the battery presence. Enable the required configuration options for hardware battery presence. Battery revive disconnect is also enabled so the EC verifies the disconnect status on the first power on after a battery cut-off. BUG=b:153717444 BRANCH=none TEST=make buildall TEST=Verify Volteer boots with and without battery. Verify "chgstate" command shows correct battery status. TEST=Run 'ectool batterycutoff', verify battery disconnects and Volteer boots successfully after connecting charger. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Iab58a176c89a5d7a062e6f513c2c09d91ac7f939 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2166142 Tested-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r--baseboard/volteer/baseboard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/baseboard/volteer/baseboard.h b/baseboard/volteer/baseboard.h
index ec11150db7..06f0217352 100644
--- a/baseboard/volteer/baseboard.h
+++ b/baseboard/volteer/baseboard.h
@@ -124,6 +124,9 @@
#define CONFIG_BATTERY_SMART
#define CONFIG_BATTERY_FUEL_GAUGE
#define CONFIG_BATTERY_CUT_OFF
+#define CONFIG_BATTERY_PRESENT_CUSTOM
+#define CONFIG_BATTERY_HW_PRESENT_CUSTOM
+#define CONFIG_BATTERY_REVIVE_DISCONNECT
/* Common LED defines */
#define CONFIG_LED_COMMON