summaryrefslogtreecommitdiff
path: root/board/grunt
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2018-03-07 16:02:50 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-03-08 11:33:20 -0800
commit0edf807724d647550cdb6818eb0893d8517fbe8e (patch)
tree03259da0f83bb6b6d2bd9937f650d10788369cd8 /board/grunt
parent68461a1242c73825a2aa75f7c5e6305feb6e6e48 (diff)
downloadchrome-ec-0edf807724d647550cdb6818eb0893d8517fbe8e.tar.gz
grunt: Enable discharge on AC
Add support for setting the battery to discharge even if AC is present. Used for factory testing. BRANCH=none BUG=b:74096137 TEST=ectool chargecontrol discharge, ectool battery Change-Id: I79e6bfabcfc0327e5c12c789decc27591911a6ee Signed-off-by: Edward Hill <ecgh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/954283 Reviewed-by: Cheng-Han Yang <chenghan@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/grunt')
-rw-r--r--board/grunt/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/grunt/board.h b/board/grunt/board.h
index 1e6e4da251..8b69a0cf42 100644
--- a/board/grunt/board.h
+++ b/board/grunt/board.h
@@ -52,6 +52,7 @@
#define CONFIG_CHARGER
#define CONFIG_CHARGER_V2
#define CONFIG_CHARGE_MANAGER
+#define CONFIG_CHARGER_DISCHARGE_ON_AC
#define CONFIG_CHARGER_INPUT_CURRENT 128
#define CONFIG_CHARGER_ISL9238
#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 1