diff options
author | Sue Chen <sue.chen@quanta.corp-partner.google.com> | 2021-11-11 13:40:29 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-17 08:56:00 +0000 |
commit | f5081fe6cb357f5903d50396421e5a0256c0584d (patch) | |
tree | ebaa3e01d88bac92edaac90ac3a11caf50fbeaa4 /board | |
parent | c3e5f41eec1ea1138a6c9b93eacbbe0edcde907c (diff) | |
download | chrome-ec-f5081fe6cb357f5903d50396421e5a0256c0584d.tar.gz |
Dewatt: Add new battery
Remove unused battery
New battery: AP19B8M
BUG=b:205094982
BRANCH=none
TEST=make BOARD=dewatt
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: Ib4081a35d0bfb7d6d34ba21cdb511feca473c221
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3274697
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/dewatt/battery.c | 86 | ||||
-rw-r--r-- | board/dewatt/board.h | 4 |
2 files changed, 12 insertions, 78 deletions
diff --git a/board/dewatt/battery.c b/board/dewatt/battery.c index ddf3adff50..40d5f930e3 100644 --- a/board/dewatt/battery.c +++ b/board/dewatt/battery.c @@ -30,57 +30,25 @@ * address, mask, and disconnect value need to be provided. */ const struct board_batt_params board_battery_info[] = { - /* AEC 5477109 */ - [BATTERY_AEC] = { + /* AP19B8M */ + [BATTERY_AP19B8M] = { .fuel_gauge = { - .manuf_name = "AEC", - .ship_mode = { - .reg_addr = 0x00, - .reg_data = { 0x0010, 0x0010 }, - }, - .sleep_mode = { - .sleep_supported = true, - .reg_addr = 0x00, - .reg_data = 0x0011, - }, - .fet = { - .reg_addr = 0x0, - .reg_mask = 0x2000, - .disconnect_val = 0x2000, - } - }, - .batt_info = { - .voltage_max = 8700, /* mV */ - .voltage_normal = 7600, - .voltage_min = 6000, - .precharge_current = 100, /* mA */ - .start_charging_min_c = 0, - .start_charging_max_c = 45, - .charging_min_c = 0, - .charging_max_c = 50, - .discharging_min_c = -20, - .discharging_max_c = 60, - }, - }, - /* AP18F4M / LIS4163ACPC */ - [BATTERY_AP18F4M] = { - .fuel_gauge = { - .manuf_name = "Murata KT00404001", + .manuf_name = "LGC KT0030G024", .ship_mode = { .reg_addr = 0x3A, .reg_data = { 0xC574, 0xC574 }, }, .fet = { - .reg_addr = 0x0, - .reg_mask = 0x2000, - .disconnect_val = 0x2000, + .reg_addr = 0x43, + .reg_mask = 0x0001, + .disconnect_val = 0x0, } }, .batt_info = { - .voltage_max = 8700, /* mV */ - .voltage_normal = 7600, - .voltage_min = 5500, - .precharge_current = 256, /* mA */ + .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, @@ -89,39 +57,7 @@ const struct board_batt_params board_battery_info[] = { .discharging_max_c = 75, }, }, - /* POW-TECH Battery Information */ - [BATTERY_POWER_TECH] = { - .fuel_gauge = { - .manuf_name = "POW-TECH", - .ship_mode = { - .reg_addr = 0x0, - .reg_data = { 0x10, 0x10 }, - }, - .sleep_mode = { - .sleep_supported = true, - .reg_addr = 0x00, - .reg_data = 0x0011, - }, - .fet = { - .reg_addr = 0x00, - .reg_mask = 0x2000, - .disconnect_val = 0x2000, - } - }, - .batt_info = { - .voltage_max = 8800, /* mV */ - .voltage_normal = 7700, - .voltage_min = 6000, - .precharge_current = 88, /* mA */ - .start_charging_min_c = 0, - .start_charging_max_c = 45, - .charging_min_c = 0, - .charging_max_c = 45, - .discharging_min_c = -20, - .discharging_max_c = 60, - }, - }, }; BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT); -const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_AP18F4M; +const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_AP19B8M; diff --git a/board/dewatt/board.h b/board/dewatt/board.h index fa04e1bd89..0743103a66 100644 --- a/board/dewatt/board.h +++ b/board/dewatt/board.h @@ -66,9 +66,7 @@ void motion_interrupt(enum gpio_signal signal); /* Battery Types */ enum battery_type { - BATTERY_AEC, - BATTERY_AP18F4M, - BATTERY_POWER_TECH, + BATTERY_AP19B8M, BATTERY_TYPE_COUNT, }; |