diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/scarlet/board.c | 8 | ||||
-rw-r--r-- | board/scarlet/board.h | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c index a1d384765a..97b4e9110d 100644 --- a/board/scarlet/board.c +++ b/board/scarlet/board.c @@ -158,10 +158,14 @@ int board_set_active_charge_port(int charge_port) /* Don't charge from a source port */ if (board_vbus_source_enabled(charge_port)) return -1; - rt946x_enable_charger_boost(1); break; case CHARGE_PORT_NONE: - rt946x_enable_charger_boost(0); + /* + * To ensure the fuel gauge (max17055) is always powered + * even when battery is disconnected, keep VBAT rail on but + * set the charging current to minimum. + */ + charger_set_current(0); break; default: panic("Invalid charge port\n"); diff --git a/board/scarlet/board.h b/board/scarlet/board.h index 9958eadd4d..437dc45cd7 100644 --- a/board/scarlet/board.h +++ b/board/scarlet/board.h @@ -71,7 +71,6 @@ #define CONFIG_CHARGER #define CONFIG_CHARGER_RT9467 #define CONFIG_CHARGER_INPUT_CURRENT 512 -#define CONFIG_CHARGER_MAINTAIN_VBAT #define CONFIG_CHARGER_V2 #define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 2 #define CONFIG_CHARGER_LIMIT_POWER_THRESH_BAT_PCT 2 |