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:
Furquan Shaikh
2017-08-09 18:33:50 -07:00
committed by chrome-bot
parent 403465caae
commit 7947687f12

View File

@@ -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,