diff options
-rw-r--r-- | board/poppy/battery.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/board/poppy/battery.c b/board/poppy/battery.c index b35438384a..6b6f1f5603 100644 --- a/board/poppy/battery.c +++ b/board/poppy/battery.c @@ -13,11 +13,11 @@ #include "extpower.h" #include "util.h" +#ifdef BOARD_SORAKA /* Shutdown mode parameter to write to manufacturer access register */ -#define SB_SHIP_MODE_REG 0x3a -#define SB_SHUTDOWN_DATA 0xC574 +#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, @@ -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, |