mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 04:43:50 +00:00
kevin / gru: Update battery parameters
Update battery parameters to match the batteries actually present on these devices. BUG=chrome-os-partner:53002 BRANCH=None TEST=Manual on kevin. Verify battery successfully charges and discharges from AC. Change-Id: I84579c23fe9fec1aecf133887a2d5b880047772f Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/344935 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Mary Ruthven <mruthven@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
77e23a4fc9
commit
4e889ab4a0
@@ -15,20 +15,33 @@
|
||||
/* Shutdown mode parameter to write to manufacturer access register */
|
||||
#define SB_SHUTDOWN_DATA 0x0010
|
||||
|
||||
/* Battery info for proto - copied from celes */
|
||||
/* TODO: Update once real battery is available */
|
||||
#ifdef BOARD_KEVIN
|
||||
static const struct battery_info info = {
|
||||
.voltage_max = 8700,
|
||||
.voltage_normal = 7600,
|
||||
.voltage_min = 6000,
|
||||
.precharge_current = 150,
|
||||
.precharge_current = 200,
|
||||
.start_charging_min_c = 0,
|
||||
.start_charging_max_c = 45,
|
||||
.charging_min_c = 0,
|
||||
.charging_max_c = 60,
|
||||
.discharging_min_c = -20,
|
||||
.discharging_max_c = 70,
|
||||
};
|
||||
#elif defined(BOARD_GRU)
|
||||
static const struct battery_info info = {
|
||||
.voltage_max = 8700,
|
||||
.voltage_normal = 7600,
|
||||
.voltage_min = 5800,
|
||||
.precharge_current = 256,
|
||||
.start_charging_min_c = 0,
|
||||
.start_charging_max_c = 50,
|
||||
.charging_min_c = 0,
|
||||
.charging_max_c = 50,
|
||||
.discharging_min_c = -20,
|
||||
.discharging_max_c = 60,
|
||||
};
|
||||
#endif
|
||||
|
||||
const struct battery_info *battery_get_info(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user