mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 21:02:27 +00:00
poppy: Enable ship mode on rev1.
rev1 (Soraka) was using proto settings. Instead use the settings described
in fuel gauge specification.
BRANCH=none
BUG=b:62552007
TEST=On soraka, check that the system goes to ship mode and no error
messages appear, using "ectool batterycutoff" from OS or "cutoff"
from EC console.
Change-Id: I04e6b08265d20395d13e28e93cb14c1d49b376df
Signed-off-by: Shamile Khan <shamile.khan@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/531736
Reviewed-by: Vijay Hiremath <vijay.p.hiremath@intel.corp-partner.google.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
#include "extpower.h"
|
||||
#include "util.h"
|
||||
|
||||
/* Shutdown mode parameter to write to manufacturer access register */
|
||||
#define SB_SHIP_MODE_REG 0x3a
|
||||
#define SB_SHUTDOWN_DATA 0xC574
|
||||
|
||||
#ifdef BOARD_SORAKA
|
||||
/* Shutdown mode parameter to write to manufacturer access register */
|
||||
#define SB_SHIP_MODE_REG SB_MANUFACTURER_ACCESS
|
||||
#define SB_SHUTDOWN_DATA 0x0010
|
||||
|
||||
static const struct battery_info info = {
|
||||
.voltage_max = 8800,
|
||||
.voltage_normal = 7700,
|
||||
@@ -33,6 +33,10 @@ static const struct battery_info info = {
|
||||
.discharging_max_c = 60,
|
||||
};
|
||||
#elif defined(BOARD_POPPY)
|
||||
/* Shutdown mode parameter to write to manufacturer access register */
|
||||
#define SB_SHIP_MODE_REG 0x3a
|
||||
#define SB_SHUTDOWN_DATA 0xC574
|
||||
|
||||
static const struct battery_info info = {
|
||||
.voltage_max = 13200,
|
||||
.voltage_normal = 11550,
|
||||
|
||||
Reference in New Issue
Block a user