summaryrefslogtreecommitdiff
path: root/board/voxel/battery.c
diff options
context:
space:
mode:
authorBen Chen <ben.chen2@quanta.corp-partner.google.com>2020-07-28 16:57:52 +0800
committerCommit Bot <commit-bot@chromium.org>2020-08-05 07:09:27 +0000
commit980cf5248b8f5479f4f54f183a55611fbafc9478 (patch)
tree2ba93b871d5a08f5f5600a8e3fdc2b47b52c1db6 /board/voxel/battery.c
parent8578454d9ff9d14cb221f9b84d93366c061aa0b5 (diff)
downloadchrome-ec-980cf5248b8f5479f4f54f183a55611fbafc9478.tar.gz
voxel: Add battery information
config LGC battery MPPACEEASW1C BUG=b:162701180 BRANCH=none TEST=Make sure battery can cutoff by console "cutoff" or "ectool cutoff" and resume by plug in adapter. Change-Id: I89fa4ae383c9f59434aa4111e531c775d83270b4 Signed-off-by: ben.chen2@quanta.corp-partner.google.com Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2336374 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/voxel/battery.c')
-rw-r--r--board/voxel/battery.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/board/voxel/battery.c b/board/voxel/battery.c
index 9b356a8efd..4d314150e2 100644
--- a/board/voxel/battery.c
+++ b/board/voxel/battery.c
@@ -32,6 +32,33 @@
* address, mask, and disconnect value need to be provided.
*/
const struct board_batt_params board_battery_info[] = {
+ /* AP19B8M */
+ [BATTERY_AP19B8M] = {
+ .fuel_gauge = {
+ .manuf_name = "LGC KT0030G024",
+ .ship_mode = {
+ .reg_addr = 0x3A,
+ .reg_data = { 0xC574, 0xC574 },
+ },
+ .fet = {
+ .reg_addr = 0x43,
+ .reg_mask = 0x0001,
+ .disconnect_val = 0x0,
+ }
+ },
+ .batt_info = {
+ .voltage_max = 13350,
+ .voltage_normal = 11610,
+ .voltage_min = 9000,
+ .precharge_current = 256,
+ .start_charging_min_c = 0,
+ .start_charging_max_c = 50,
+ .charging_min_c = 0,
+ .charging_max_c = 60,
+ .discharging_min_c = -20,
+ .discharging_max_c = 75,
+ },
+ },
/* LGC\011 L17L3PB0 Battery Information */
/*
* Battery info provided by ODM on b/143477210, comment #11