diff options
author | Sue Chen <sue.chen@quanta.corp-partner.google.com> | 2019-04-12 09:36:11 +0800 |
---|---|---|
committer | Marco Chen <marcochen@chromium.org> | 2019-04-22 15:47:22 +0000 |
commit | 2dd77ca46dc00331b8fcfae3c6a2ce42b6e74ad2 (patch) | |
tree | 14a1c33ac0a52374083a7026be6e7ecb13db009b /board | |
parent | abb957d47b617134f983ce5543782c4324eca57b (diff) | |
download | chrome-ec-2dd77ca46dc00331b8fcfae3c6a2ce42b6e74ad2.tar.gz |
Bobba: Add new battery for Driod and Blorb
new battery: Murata KT00304012
BUG=b:130615670
BRANCH=octopus
TEST=shipping mode and charge parameters are all good.
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: Ic55f5aa8351184ca68fd539975822d8079ac03b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1564494
Reviewed-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Reviewed-by: Marco Chen <marcochen@chromium.org>
Tested-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/bobba/battery.c | 29 | ||||
-rw-r--r-- | board/bobba/board.h | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/board/bobba/battery.c b/board/bobba/battery.c index 6c6c29dd0e..08495f448b 100644 --- a/board/bobba/battery.c +++ b/board/bobba/battery.c @@ -234,6 +234,35 @@ const struct board_batt_params board_battery_info[] = { .discharging_max_c = 75, }, }, + + /* Murata AP18C4K Battery Information */ + [BATTERY_MURATA_AP18C4K] = { + .fuel_gauge = { + .manuf_name = "Murata KT00304012", + .device_name = "AP18C4K", + .ship_mode = { + .reg_addr = 0x3A, + .reg_data = { 0xC574, 0xC574 }, + }, + .fet = { + .reg_addr = 0x0, + .reg_mask = 0x2000, + .disconnect_val = 0x2000, + }, + }, + .batt_info = { + .voltage_max = 13200, + .voltage_normal = 11400, + .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/bobba/board.h b/board/bobba/board.h index d08fe4f087..9ab8fb0ab1 100644 --- a/board/bobba/board.h +++ b/board/bobba/board.h @@ -106,6 +106,7 @@ enum battery_type { BATTERY_SMP_AP13J7K, BATTERY_PANASONIC_AC15A3J, BATTERY_LGC_AP18C8K, + BATTERY_MURATA_AP18C4K, BATTERY_TYPE_COUNT, }; |