diff options
-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 { |