summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/yorp/battery.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/board/yorp/battery.c b/board/yorp/battery.c
index 9c66272def..3287578ed5 100644
--- a/board/yorp/battery.c
+++ b/board/yorp/battery.c
@@ -22,6 +22,7 @@
enum battery_type {
BATTERY_LGC15,
BATTERY_PANASONIC,
+ BATTERY_SANYO,
BATTERY_TYPE_COUNT,
};
@@ -133,6 +134,34 @@ static const struct board_batt_params info[] = {
.discharging_max_c = 60,
},
},
+
+ /* SANYO AC15A3J Battery Information */
+ [BATTERY_SANYO] = {
+ .fuel_gauge = {
+ .manuf_name = "SANYO",
+ .ship_mode = {
+ .reg_addr = 0x3A,
+ .reg_data = { 0xC574, 0xC574 },
+ },
+ .fet = {
+ .reg_addr = 0x0,
+ .reg_mask = 0x4000,
+ .disconnect_val = 0x0,
+ }
+ },
+ .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 = 50,
+ .charging_min_c = 0,
+ .charging_max_c = 60,
+ .discharging_min_c = 0,
+ .discharging_max_c = 60,
+ },
+ },
};
BUILD_ASSERT(ARRAY_SIZE(info) == BATTERY_TYPE_COUNT);