diff options
author | MilesDY_Chen <MilesDY_Chen@compal.com> | 2014-03-04 21:40:45 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-03-07 00:41:44 +0000 |
commit | fcdb93668a32f3d2d311f113484eed1df5c613de (patch) | |
tree | f8d5e0b406956debb75352df9837473ce96c29c5 | |
parent | 1484116cb0173bce860c4a26aaf5d9625824a401 (diff) | |
download | chrome-ec-fcdb93668a32f3d2d311f113484eed1df5c613de.tar.gz |
Big: add 4s battery LGC AC14B8K support
Big can't be powered on by using 4s LGC AC14B8K battery.
Thus, add 4s battery definition to ec.
BRANCH=big
BUG=chrome-os-partner:26533
TEST=flash ec to big device and confirm battery works
Change-Id: I32d2eb2fabc70f3fc075a49a67c1fd4d30975981
Signed-off-by: MilesDY_Chen <MilesDY_Chen@compal.com>
Signed-off-by: Katie Roberts-Hoffman <katierh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/188651
-rw-r--r-- | board/big/battery.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/board/big/battery.c b/board/big/battery.c index 6bd445fdf4..5e98616aca 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_4s = { + + .voltage_max = 17520, + .voltage_normal = 15200, /* Average of max & min */ + .voltage_min = 12000, + + /* 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_device support_batteries[] = { { .manuf = "NVT", @@ -95,7 +112,14 @@ static struct battery_device support_batteries[] = { .design_mv = 11400, .battery_info = &info_3s, .support_cut_off = 1, - } + }, + { + .manuf = "LGC", + .device = "AC14B8K", + .design_mv = 15200, + .battery_info = &info_4s, + .support_cut_off = 1, + }, }; #ifdef CONFIG_BATTERY_VENDOR_PARAMS |