diff options
author | Ting Shen <phoenixshen@google.com> | 2019-10-25 14:55:48 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-01 08:53:42 +0000 |
commit | 891b766be6a62a338327edda765b563e7197db2f (patch) | |
tree | 9ab51e312c51d9a27930a231f4362f6f32c8a175 | |
parent | f88c89736d6354dbbdd1f9d7f47d794530cc4d5f (diff) | |
download | chrome-ec-891b766be6a62a338327edda765b563e7197db2f.tar.gz |
juniper: add new battery for next juniper build
BUG=b:143334368
TEST=1) See "[0.064610 found batt:PANASONIC]" on EC console
2) battery readings looks reasonable
BRANCH=master
Change-Id: I5a7091ea7db6ff3f524ac5bd99bc6a7d3bdcd181
Signed-off-by: Ting Shen <phoenixshen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1880771
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r-- | board/jacuzzi/battery.c | 27 | ||||
-rw-r--r-- | board/jacuzzi/board.h | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/board/jacuzzi/battery.c b/board/jacuzzi/battery.c index 014a8ae6fc..fe05a683db 100644 --- a/board/jacuzzi/battery.c +++ b/board/jacuzzi/battery.c @@ -35,6 +35,33 @@ const struct board_batt_params board_battery_info[] = { .discharging_max_c = 60, }, }, + [BATTERY_PANASONIC_AC16L5J] = { + .fuel_gauge = { + .manuf_name = "PANASONIC", + .device_name = "AP16L5J", + .ship_mode = { + .reg_addr = 0x3A, + .reg_data = { 0xC574, 0xC574 }, + }, + .fet = { + .reg_addr = 0x0, + .reg_mask = 0x4000, + .disconnect_val = 0x0, + } + }, + .batt_info = { + .voltage_max = 8800, + .voltage_normal = 7700, + .voltage_min = 6000, + .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/jacuzzi/board.h b/board/jacuzzi/board.h index 2a7ea40110..2d76d56c42 100644 --- a/board/jacuzzi/board.h +++ b/board/jacuzzi/board.h @@ -112,6 +112,7 @@ enum charge_port { enum battery_type { BATTERY_PANASONIC_AC15A3J, + BATTERY_PANASONIC_AC16L5J, BATTERY_TYPE_COUNT, }; |