summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaesar Wang <wxt@rock-chips.com>2017-08-16 13:50:25 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-08-16 20:46:37 -0700
commitd7a41825d936fd20c0dfafa0cc19d5fd66df575b (patch)
tree530d46ae2ed9baf48e7f868cc4695ac24937e2ba
parentf7f552251ac6a9d81ecc9055178f12faa9bd5a38 (diff)
downloadchrome-ec-d7a41825d936fd20c0dfafa0cc19d5fd66df575b.tar.gz
nefario/battery: support the 3s battery
As Nefario supports 3s battery, we can change the parameter for board-specific instead of the charger driver. BUG=chromium:754824 BRANCH=none TEST=Build and check battery information > battery Status: 0x0080 INIT Param flags:00000003 Temp: 0x0bc0 = 300.8 K (27.7 C) V: 0x2e1e = 11806 mV V-desired: 0x32fa = 13050 mV I: 0x07a7 = 1959 mA(CHG) I-desired: 0x0fa0 = 4000 mA Charging: Allowed Charge: 17 % Manuf: sunwoda Device: BBLD485595 Chem: LION Serial: 0x0064 V-design: 0x2c88 = 11400 mV Mode: 0x6001 Abs charge:17 % Remaining: 667 mAh Cap-full: 4079 mAh Design: 4000 mAh Time-full: 2h:47 Change-Id: If9a4cdd9932e3287bf06cbe0840c94085cbeea1f Signed-off-by: Caesar Wang <wxt@rock-chips.com> Reviewed-on: https://chromium-review.googlesource.com/616508 Reviewed-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--board/nefario/battery.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/board/nefario/battery.c b/board/nefario/battery.c
index 29619884d8..0c7b885511 100644
--- a/board/nefario/battery.c
+++ b/board/nefario/battery.c
@@ -17,10 +17,10 @@
#define SB_SHUTDOWN_DATA 0x0010
static const struct battery_info info = {
- .voltage_max = 8688, /* 8700mA, round down for chg reg */
- .voltage_normal = 7600,
- .voltage_min = 5800,
- .precharge_current = 256,
+ .voltage_max = 13048, /* 13050mA, round down for chg reg */
+ .voltage_normal = 11400,
+ .voltage_min = 9000,
+ .precharge_current = 300,
.start_charging_min_c = 0,
.start_charging_max_c = 50,
.charging_min_c = 0,