From cb462f29c640a6913c1ad98fecf2132d720c2488 Mon Sep 17 00:00:00 2001 From: cloud_lin Date: Tue, 4 Mar 2014 17:03:43 +0800 Subject: Big: add LGC 3s battery info BRANCH=big BUG=chrome-os-partner:26533 TEST=build ec and flash to big board; verify battery works Signed-off-by: Cloud Lin Signed-off-by: Katie Roberts-Hoffman Change-Id: Ia005a549b8318b4f8df81e7b1341d50da28f4282 Reviewed-on: https://chromium-review.googlesource.com/188632 Reviewed-by: Katie Roberts-Hoffman Commit-Queue: Katie Roberts-Hoffman Tested-by: Katie Roberts-Hoffman --- board/big/battery.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/board/big/battery.c b/board/big/battery.c index 5e98616aca..31408b838b 100644 --- a/board/big/battery.c +++ b/board/big/battery.c @@ -74,6 +74,23 @@ static struct battery_info info_3s = { .discharging_max_c = 50, }; +static struct battery_info info_3s_LGC = { + + .voltage_max = 13140, + .voltage_normal = 11400, /* Average of max & min */ + .voltage_min = 9000, + + /* Pre-charge values. */ + .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 = 75, +}; + static struct battery_info info_4s = { .voltage_max = 17520, @@ -120,6 +137,13 @@ static struct battery_device support_batteries[] = { .battery_info = &info_4s, .support_cut_off = 1, }, + { + .manuf = "LGC", + .device = "AC14B18J", + .design_mv = 11400, + .battery_info = &info_3s_LGC, + .support_cut_off = 1, + }, }; #ifdef CONFIG_BATTERY_VENDOR_PARAMS -- cgit v1.2.1