summaryrefslogtreecommitdiff
path: root/board/willow/battery.c
diff options
context:
space:
mode:
authorDavid Huang <david.huang@quanta.corp-partner.google.com>2020-08-28 09:42:07 +0800
committerCommit Bot <commit-bot@chromium.org>2020-08-28 12:56:51 +0000
commitd18a3ca54773694c3bfcdcef3615a3e029d67ab1 (patch)
tree0f7f0bb11efed2e637afdcdedbde37d48297e656 /board/willow/battery.c
parente62b2830a103029127468e02dc529fc12f66d742 (diff)
downloadchrome-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/battery.c')
-rw-r--r--board/willow/battery.c27
1 files changed, 27 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);