summaryrefslogtreecommitdiff
path: root/board/scarlet
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2018-07-26 17:45:09 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-07-29 00:27:36 -0700
commit768f0d90c5291b355eceed9620d148388000d7f4 (patch)
treec721a7a95a4d2c5c0e908971aed46b0557630e89 /board/scarlet
parent30193ff3b1c92aad3decb0546ee1b9444acdd17a (diff)
downloadchrome-ec-768f0d90c5291b355eceed9620d148388000d7f4.tar.gz
scarlet: Bump the hard-coded battery current
For scarlet, the battery desired current is always overridden by charger_profile_override(). As scarlet has a dumb battery, we just need a hard-coded placeholder for the fuel gauge. 'firmware_ECCharging' test doesn't expect charger target current to go higher than battery desired current, so we need to bump this hard-coded battery desired current to pass the test. BUG=b:111837457 BRANCH=scarlet TEST=battery command shows I-desired is 4000mA TEST=firmware_ECCharging passes when battery is not full Change-Id: Ife29c6f1c65da09df8647ae9b6987ae5df8a3745 Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/1152524 Commit-Ready: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/scarlet')
-rw-r--r--board/scarlet/board.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/scarlet/board.h b/board/scarlet/board.h
index 087ac427e5..ee580193a3 100644
--- a/board/scarlet/board.h
+++ b/board/scarlet/board.h
@@ -126,7 +126,7 @@
/* Battery parameters for max17055 ModelGauge m5 algorithm. */
#define BATTERY_MAX17055_RSENSE 5 /* m-ohm */
-#define BATTERY_DESIRED_CHARGING_CURRENT 2000 /* mA */
+#define BATTERY_DESIRED_CHARGING_CURRENT 4000 /* mA */
#define CONFIG_THROTTLE_AP_ON_BAT_DISCHG_CURRENT
#define BAT_MAX_DISCHG_CURRENT 5000 /* mA */