diff options
author | Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> | 2021-08-25 10:26:20 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-25 17:20:55 +0000 |
commit | d610bce3c3b08e0432f8008c1b4020b173f32e27 (patch) | |
tree | b8b3607d6561b753ca5964699e1c3e41f711c4ec /board | |
parent | 1f7fe895f3316496317597c1f8e68a9e35b4007e (diff) | |
download | chrome-ec-d610bce3c3b08e0432f8008c1b4020b173f32e27.tar.gz |
Chronicler: Update battery spec
Update battery manufacturer name
BUG=b:190685811
BRANCH=volteer
TEST=check NVT CP813907-01 still working.
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: I689a59b3a64194d163a2eff4d0d3c4c6ed70cc8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115076
Reviewed-by: Isaac Lee <isaaclee@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/chronicler/battery.c | 38 | ||||
-rw-r--r-- | board/chronicler/board.h | 5 |
2 files changed, 39 insertions, 4 deletions
diff --git a/board/chronicler/battery.c b/board/chronicler/battery.c index ce8afaef00..82347953ba 100644 --- a/board/chronicler/battery.c +++ b/board/chronicler/battery.c @@ -32,8 +32,42 @@ * address, mask, and disconnect value need to be provided. */ const struct board_batt_params board_battery_info[] = { + /* Fujitsu CP813907-01 Battery Information */ + [BATTERY_FUJITSU_CP813907] = { + .fuel_gauge = { + .manuf_name = "Fujitsu", + .device_name = "CP813907-01", + .ship_mode = { + .reg_addr = 0x00, + .reg_data = { 0x10, 0x10 }, + }, + .fet = { + .reg_addr = 0x00, + .reg_mask = 0x2000, + .disconnect_val = 0x2000, + } + }, + .batt_info = { + .voltage_max = 13200, /* mV */ + .voltage_normal = 11550, /* mV */ + .voltage_min = 9000, /* mV */ + .precharge_current = 128, /* mA */ + .start_charging_min_c = 0, + .start_charging_max_c = 45, + .charging_min_c = 0, + .charging_max_c = 55, + .discharging_min_c = -20, + .discharging_max_c = 60, + }, + }, + /* NVT CP813907-01 Battery Information */ - [BATTERY_ATL_3S1P_606072] = { + /* + * NVT CP813907-01 Battery only use to support early + * stage battery, all battery for PVT will update + * manufacturer name to Fujitsu. See b/190685811. + */ + [BATTERY_NVT_CP813907] = { .fuel_gauge = { .manuf_name = "NVT", .device_name = "CP813907-01", @@ -63,4 +97,4 @@ const struct board_batt_params board_battery_info[] = { }; BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT); -const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_ATL_3S1P_606072; +const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_FUJITSU_CP813907; diff --git a/board/chronicler/board.h b/board/chronicler/board.h index 96998456e3..e9697f55ab 100644 --- a/board/chronicler/board.h +++ b/board/chronicler/board.h @@ -142,8 +142,9 @@ #include "usbc_config.h" enum battery_type { - BATTERY_ATL_3S1P_606072, - BATTERY_TYPE_COUNT, + BATTERY_FUJITSU_CP813907, + BATTERY_NVT_CP813907, + BATTERY_TYPE_COUNT }; enum pwm_channel { |