diff options
-rw-r--r-- | board/helios/battery.c | 48 | ||||
-rw-r--r-- | board/helios/board.h | 3 |
2 files changed, 11 insertions, 40 deletions
diff --git a/board/helios/battery.c b/board/helios/battery.c index eee20991e3..4afb1444d6 100644 --- a/board/helios/battery.c +++ b/board/helios/battery.c @@ -32,10 +32,10 @@ * address, mask, and disconnect value need to be provided. */ const struct board_batt_params board_battery_info[] = { - /* SMP LIS Dell FMXMT Battery Information */ - [BATTERY_SMP_LIS] = { + /* Simplo Battery Information */ + [BATTERY_SIMPLO] = { .fuel_gauge = { - .manuf_name = "SMP-LIS3.78", + .manuf_name = "AS2GVID3jB", .ship_mode = { .reg_addr = 0x0, .reg_data = { 0x10, 0x10 }, @@ -47,47 +47,19 @@ const struct board_batt_params board_battery_info[] = { } }, .batt_info = { - .voltage_max = 8800, - .voltage_normal = 7660, /* mV */ - .voltage_min = 6000, /* mV */ - .precharge_current = 256, /* mA */ + .voltage_max = 13200, /* mV */ + .voltage_normal = 11550, /* mV */ + .voltage_min = 9000, /* mV */ + .precharge_current = 256, /* mA */ .start_charging_min_c = 0, - .start_charging_max_c = 60, + .start_charging_max_c = 45, .charging_min_c = 0, .charging_max_c = 60, - .discharging_min_c = 0, - .discharging_max_c = 60, - }, - }, - - /* SMP SDI Dell FMXMT Battery Information */ - [BATTERY_SMP_SDI] = { - .fuel_gauge = { - .manuf_name = "SMP-SDI-3727", - .ship_mode = { - .reg_addr = 0x0, - .reg_data = { 0x10, 0x10 }, - }, - .fet = { - .reg_addr = 0x0, - .reg_mask = 0x2000, - .disconnect_val = 0x2000, - } - }, - .batt_info = { - .voltage_max = 8800, - .voltage_normal = 7660, /* mV */ - .voltage_min = 6000, /* mV */ - .precharge_current = 256, /* mA */ - .start_charging_min_c = 0, - .start_charging_max_c = 60, - .charging_min_c = 0, - .charging_max_c = 60, - .discharging_min_c = 0, + .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_SMP_SDI; +const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_SIMPLO; diff --git a/board/helios/board.h b/board/helios/board.h index 08a7c69083..040e8cbc87 100644 --- a/board/helios/board.h +++ b/board/helios/board.h @@ -154,8 +154,7 @@ enum temp_sensor_id { /* List of possible batteries */ enum battery_type { - BATTERY_SMP_LIS, - BATTERY_SMP_SDI, + BATTERY_SIMPLO, BATTERY_TYPE_COUNT, }; |