diff options
author | David Huang <david.huang@quanta.corp-partner.google.com> | 2020-09-09 17:55:03 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-11 03:05:05 +0000 |
commit | 14abdc0dc458ab8f29ee96faf92340c3c636cbe3 (patch) | |
tree | 681567bbf0fb91b44b1a6a78d29a9490d51c1e0c /board/willow | |
parent | 248a04dcf04fd5d6ae4a2840a447db81ad6f937d (diff) | |
download | chrome-ec-14abdc0dc458ab8f29ee96faf92340c3c636cbe3.tar.gz |
willow: Support new battery AP19B8K
Add new battery config : AP19B8K.
BUG=b:166225039
BRANCH=master
TEST=Check found battery info in console and cutoff work.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: I80ee052832dd03eb985fa746b7c3565ce11fbbad
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2400548
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board/willow')
-rw-r--r-- | board/willow/battery.c | 28 | ||||
-rw-r--r-- | board/willow/board.h | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/board/willow/battery.c b/board/willow/battery.c index 94faafd638..cc97838f48 100644 --- a/board/willow/battery.c +++ b/board/willow/battery.c @@ -200,6 +200,34 @@ const struct board_batt_params board_battery_info[] = { .discharging_max_c = 75, }, }, + /* LGC AP19B8K Battery Information */ + [BATTERY_LGC_AP19B8K] = { + .fuel_gauge = { + .manuf_name = "LGC KT0030G022", + .device_name = "AP19B8K", + .ship_mode = { + .reg_addr = 0x3A, + .reg_data = { 0xC574, 0xC574 }, + }, + .fet = { + .reg_addr = 0x43, + .reg_mask = 0x0001, + .disconnect_val = 0x0, + }, + }, + .batt_info = { + .voltage_max = 13050, + .voltage_normal = 11250, + .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/willow/board.h b/board/willow/board.h index a0b64498e1..639d6995ad 100644 --- a/board/willow/board.h +++ b/board/willow/board.h @@ -133,6 +133,7 @@ enum battery_type { BATTERY_LGC_AP18C8K, BATTERY_MURATA_AP18C4K, BATTERY_PANASONIC_AP19B5K_KT00305011, + BATTERY_LGC_AP19B8K, BATTERY_TYPE_COUNT, }; |