From ae952f06a8c8d1b7ab71b1e96ff4e5f0825fc259 Mon Sep 17 00:00:00 2001 From: Philip Chen Date: Thu, 22 Feb 2018 18:45:17 -0800 Subject: [PATCH] scarlet: Update battery profile for Simplo battery BUG=b:69634899 BRANCH=scarlet TEST='battery' command shows the full cap is updated to 8734 mAh Change-Id: I090d80e7c889c044ba2dfbdf02527a0791419320 Signed-off-by: Philip Chen Reviewed-on: https://chromium-review.googlesource.com/933861 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: Philip Chen Reviewed-by: Aseda Aboagye --- board/scarlet/battery.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/board/scarlet/battery.c b/board/scarlet/battery.c index 51f773a261..8b714ebec7 100644 --- a/board/scarlet/battery.c +++ b/board/scarlet/battery.c @@ -63,15 +63,20 @@ static const struct battery_info info[] = { }; static const struct max17055_batt_profile batt_profile[] = { - /* - * TODO(philipchen): Update the battery profile for Simplo - * battery once we have the characterization result. - */ [BATTERY_SIMPLO] = { - .is_ez_config = 1, - .design_cap = MAX17055_DESIGNCAP_REG(9120), - .ichg_term = MAX17055_ICHGTERM_REG(180), - .v_empty_detect = MAX17055_VEMPTY_REG(2700, 3280), + .is_ez_config = 0, + .design_cap = 0x221e, /* 8734mAh */ + .ichg_term = 0x589, /* 443 mA */ + /* Empty voltage = 3000mV, Recovery voltage = 3600mV */ + .v_empty_detect = 0x965a, + .learn_cfg = 0x4406, + .dpacc = 0x0c7a, + .rcomp0 = 0x0062, + .tempco = 0x1327, + .qr_table00 = 0x1680, + .qr_table10 = 0x0900, + .qr_table20 = 0x0280, + .qr_table30 = 0x0280, }, [BATTERY_AETECH] = { .is_ez_config = 0,