mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 22:11:41 +00:00
poppy: Fix manufacturer access and shutdown data for poppy battery
Poppy uses 0x00 reg for manufacturer access and shutdown data 0x10 just like Soraka battery. Fix the macros for poppy. BUG=b:64460667 BRANCH=None TEST=Verified that battery cutoff by smb command works on poppy. Change-Id: I5e568a31a575bc0e403362e48e64a753c094dab1 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/609553 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
403465caae
commit
7947687f12
@@ -16,11 +16,11 @@
|
||||
|
||||
static enum battery_present batt_pres_prev = BP_NOT_SURE;
|
||||
|
||||
#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
|
||||
|
||||
#ifdef BOARD_SORAKA
|
||||
static const struct battery_info info = {
|
||||
.voltage_max = 8800,
|
||||
.voltage_normal = 7700,
|
||||
@@ -36,9 +36,6 @@ 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,
|
||||
|
||||
Reference in New Issue
Block a user