summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-An Chen <yu-an.chen@quanta.corp-partner.google.com>2022-05-05 19:34:14 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-10 02:09:55 +0000
commit3f39e2393f41526ef5a0a4c8fb7df6e5dc861b19 (patch)
tree724860e8f2ec47dbcdd5f0fa6494f90b11bd9e41
parent03df4b2fc497fb1e2865ca9027910a5168394e80 (diff)
downloadchrome-ec-3f39e2393f41526ef5a0a4c8fb7df6e5dc861b19.tar.gz
volmar: Add battery AP19B8M
Copy AP19B8M info from kano BUG=b:218976941 BRANCH=none TEST=Check battery charge/discharge/cutoff working Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I0f1b57be505b33b29529635aca17dc5e51319cc5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3627703 Commit-Queue: Ofer Fried <oferfried@google.com> Tested-by: Michael Law <michaelsplaw@google.com> Reviewed-by: Ofer Fried <oferfried@google.com>
-rw-r--r--board/volmar/battery.c29
-rw-r--r--board/volmar/board.h1
2 files changed, 30 insertions, 0 deletions
diff --git a/board/volmar/battery.c b/board/volmar/battery.c
index 95bcb39f51..3832fd8edf 100644
--- a/board/volmar/battery.c
+++ b/board/volmar/battery.c
@@ -92,6 +92,35 @@ const struct board_batt_params board_battery_info[] = {
.discharging_max_c = 75,
},
},
+ /* LGC AP19B8M Battery Information */
+ [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,
+ .cfet_mask = 0x0002,
+ .cfet_off_val = 0x0000,
+ }
+ },
+ .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,
+ },
+ },
};
BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT);
diff --git a/board/volmar/board.h b/board/volmar/board.h
index 30bfa59f30..aa0c48e9a6 100644
--- a/board/volmar/board.h
+++ b/board/volmar/board.h
@@ -160,6 +160,7 @@ enum temp_sensor_id {
enum battery_type {
BATTERY_COSMX_AP20CBL,
BATTERY_LGC_AP18C8K,
+ BATTERY_AP19B8M,
BATTERY_TYPE_COUNT
};