summaryrefslogtreecommitdiff
path: root/common/battery_kirby.c
blob: 38caf37a5b11d3ba69a7ca0442ada2555d356dde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* 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 = {
	/*
	 * TODO(victoryang): What are the correct values?
	 * Design voltage
	 *   max    = 4.4V
	 *   normal = 3.8V
	 *   min    = 3.0V
	 */
	.voltage_max    = 4400,
	.voltage_normal = 3800,
	.voltage_min    = 3000,

	/* Pre-charge current: I <= 0.01C */
	.precharge_current  = 128, /* mA */
};

const struct battery_info *battery_get_info(void)
{
	return &info;
}