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>
This commit is contained in:
Philip Chen
2017-08-18 12:25:00 -07:00
committed by chrome-bot
parent 8e7bad0482
commit a438efab9c
2 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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 */