summaryrefslogtreecommitdiff
path: root/board/scarlet/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/scarlet/board.c')
-rw-r--r--board/scarlet/board.c8
1 files changed, 6 insertions, 2 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");