From a438efab9c8a667743da8588bc32252ce617c517 Mon Sep 17 00:00:00 2001 From: Philip Chen Date: Fri, 18 Aug 2017 12:25:00 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/621777 Commit-Ready: Philip Chen Tested-by: Philip Chen Reviewed-by: Shawn N --- board/scarlet/board.h | 9 +++++---- include/battery.h | 1 + 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 */ -- cgit v1.2.1