diff options
author | David Huang <david.huang@quanta.corp-partner.google.com> | 2020-08-28 09:42:07 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-28 12:56:51 +0000 |
commit | d18a3ca54773694c3bfcdcef3615a3e029d67ab1 (patch) | |
tree | 0f7f0bb11efed2e637afdcdedbde37d48297e656 /board/willow | |
parent | e62b2830a103029127468e02dc529fc12f66d742 (diff) | |
download | chrome-ec-d18a3ca54773694c3bfcdcef3615a3e029d67ab1.tar.gz |
willow: Support new battery AP19B5K
Add new battery config : AP19B5K.
BUG=b:166226645
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: Ia22673f016b7cf5a581a40039113969b56b29089
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2379357
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Commit-Queue: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board/willow')
-rw-r--r-- | board/willow/battery.c | 27 | ||||
-rw-r--r-- | board/willow/board.h | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/board/willow/battery.c b/board/willow/battery.c index cd26ebfd2c..94faafd638 100644 --- a/board/willow/battery.c +++ b/board/willow/battery.c @@ -173,6 +173,33 @@ const struct board_batt_params board_battery_info[] = { .discharging_max_c = 75, }, }, + [BATTERY_PANASONIC_AP19B5K_KT00305011] = { + .fuel_gauge = { + .manuf_name = "PANASONIC KT00305011", + .device_name = "AP19B5K", + .ship_mode = { + .reg_addr = 0x3A, + .reg_data = { 0xC574, 0xC574 }, + }, + .fet = { + .reg_addr = 0x0, + .reg_mask = 0x4000, + .disconnect_val = 0x0, + } + }, + .batt_info = { + .voltage_max = 13200, + .voltage_normal = 11550, + .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 74ea362211..a0b64498e1 100644 --- a/board/willow/board.h +++ b/board/willow/board.h @@ -132,6 +132,7 @@ enum battery_type { BATTERY_PANASONIC_AC16L5J_KT00205009, BATTERY_LGC_AP18C8K, BATTERY_MURATA_AP18C4K, + BATTERY_PANASONIC_AP19B5K_KT00305011, BATTERY_TYPE_COUNT, }; |