summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2018-02-22 18:45:17 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-02-23 21:07:14 -0800
commitae952f06a8c8d1b7ab71b1e96ff4e5f0825fc259 (patch)
treecc796727b4aa635e9eee59fb461d9f4e7e8636f0
parent25e8bc3efd94e6110f46c9f8aa6d7a0ab456c995 (diff)
downloadchrome-ec-ae952f06a8c8d1b7ab71b1e96ff4e5f0825fc259.tar.gz
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 <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/933861 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r--board/scarlet/battery.c21
1 files 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,