summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2017-08-18 12:25:00 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-21 12:52:14 -0700
commita438efab9c8a667743da8588bc32252ce617c517 (patch)
treefba582da4acd835804375e2fea10f93f383ceed8
parent8e7bad04821fb7b288ab2d3b4e1e3551ee7d6e94 (diff)
downloadchrome-ec-a438efab9c8a667743da8588bc32252ce617c517.tar.gz
scarlet: Define BATTERY_DESIRED_CHARGING_CURRENT
BUG=b:64821815 CQ-DEPEND=CL:621776 BRANCH=none TEST=plug in AC, and check 'charger' command on ec console Change-Id: I53681d21a5311ea58562acf2fae451ebc7f41d4d Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/621777 Commit-Ready: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--board/scarlet/board.h9
-rw-r--r--include/battery.h1
2 files changed, 6 insertions, 4 deletions
diff --git a/board/scarlet/board.h b/board/scarlet/board.h
index b8e3db549c..296f9aa462 100644
--- a/board/scarlet/board.h
+++ b/board/scarlet/board.h
@@ -115,10 +115,11 @@
#define CONFIG_BATTERY_MAX17055
/* Battery parameters for max17055 ModelGauge m5 algorithm. */
-#define BATTERY_MAX17055_DESIGNCAP 0x1b58
-#define BATTERY_MAX17055_ICHGTERM 0x0220
-#define BATTERY_MAX17055_VEMPTY 0xa561
-#define BATTERY_MAX17055_RSENSE 5 /* m-ohm */
+#define BATTERY_MAX17055_DESIGNCAP 0x1b58
+#define BATTERY_MAX17055_ICHGTERM 0x0220
+#define BATTERY_MAX17055_VEMPTY 0xa561
+#define BATTERY_MAX17055_RSENSE 5 /* m-ohm */
+#define BATTERY_DESIRED_CHARGING_CURRENT 2000 /* mA */
#define PD_OPERATING_POWER_MW 15000
#define PD_MAX_POWER_MW 60000
diff --git a/include/battery.h b/include/battery.h
index 4848ef080b..b4b54bc72e 100644
--- a/include/battery.h
+++ b/include/battery.h
@@ -101,6 +101,7 @@ struct battery_info {
int voltage_max;
int voltage_normal;
int voltage_min;
+ /* (TODO(chromium:756700): add desired_charging_current */
/* Pre-charge current in mA */
int precharge_current;
/* Working temperature ranges in degrees C */