diff options
Diffstat (limited to 'board/kirby/battery.c')
-rw-r--r-- | board/kirby/battery.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/board/kirby/battery.c b/board/kirby/battery.c new file mode 100644 index 0000000000..a149ba7aed --- /dev/null +++ b/board/kirby/battery.c @@ -0,0 +1,37 @@ +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + * + * Battery pack info for Kirby + */ + +#include "battery_pack.h" + +/* Battery temperature ranges in degrees C */ +const struct battery_temperature_ranges bat_temp_ranges = { + .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 = 100, +}; + +static const struct battery_info info = { + /* + * max = 4.2V + * normal = 3.7V + * min = 3.0V + */ + .voltage_max = 4200, + .voltage_normal = 3700, + .voltage_min = 3000, + + /* Pre-charge current: I <= 0.01C */ + .precharge_current = 128, /* mA */ +}; + +const struct battery_info *battery_get_info(void) +{ + return &info; +} |