summaryrefslogtreecommitdiff
path: root/board/voxel/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/voxel/battery.c')
-rw-r--r--board/voxel/battery.c47
1 files changed, 24 insertions, 23 deletions
diff --git a/board/voxel/battery.c b/board/voxel/battery.c
index 4d314150e2..8ec7c69689 100644
--- a/board/voxel/battery.c
+++ b/board/voxel/battery.c
@@ -44,6 +44,8 @@ const struct board_batt_params board_battery_info[] = {
.reg_addr = 0x43,
.reg_mask = 0x0001,
.disconnect_val = 0x0,
+ .cfet_mask = 0x0002,
+ .cfet_off_val = 0x0000,
}
},
.batt_info = {
@@ -59,37 +61,36 @@ const struct board_batt_params board_battery_info[] = {
.discharging_max_c = 75,
},
},
- /* LGC\011 L17L3PB0 Battery Information */
- /*
- * Battery info provided by ODM on b/143477210, comment #11
- */
- [BATTERY_LGC011] = {
+ /* LGC AP18C8K Battery Information */
+ [BATTERY_LGC_AP18C8K] = {
.fuel_gauge = {
- .manuf_name = "LGC",
+ .manuf_name = "LGC KT0030G020",
.ship_mode = {
- .reg_addr = 0x00,
- .reg_data = { 0x10, 0x10 },
+ .reg_addr = 0x3A,
+ .reg_data = { 0xC574, 0xC574 },
},
.fet = {
- .reg_addr = 0x0,
- .reg_mask = 0x6000,
- .disconnect_val = 0x6000,
- }
+ .reg_addr = 0x43,
+ .reg_mask = 0x0001,
+ .disconnect_val = 0x0,
+ .cfet_mask = 0x0002,
+ .cfet_off_val = 0x0000,
+ },
},
.batt_info = {
- .voltage_max = TARGET_WITH_MARGIN(13200, 5),
- .voltage_normal = 11550, /* mV */
- .voltage_min = 9000, /* mV */
- .precharge_current = 256, /* mA */
- .start_charging_min_c = 0,
- .start_charging_max_c = 45,
- .charging_min_c = 0,
- .charging_max_c = 60,
- .discharging_min_c = 0,
- .discharging_max_c = 75,
+ .voltage_max = 13050,
+ .voltage_normal = 11250,
+ .voltage_min = 9000,
+ .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);
-const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_LGC011;
+const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_AP19B8M;