summaryrefslogtreecommitdiff
path: root/board/elm/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/elm/board.c')
-rw-r--r--board/elm/board.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/board/elm/board.c b/board/elm/board.c
index 6d7d9746bb..701f61ac6c 100644
--- a/board/elm/board.c
+++ b/board/elm/board.c
@@ -289,17 +289,6 @@ int board_set_active_charge_port(int charge_port)
charge_port < CONFIG_USB_PD_PORT_COUNT);
/* check if we are source VBUS on the port */
int source = gpio_get_level(GPIO_USB_C0_5V_EN);
- static int initialized;
-
- /*
- * Reject charge port disable if our battery is critical and we
- * have yet to initialize a charge port - continue to charge using
- * charger ROM / POR settings.
- */
- if (!initialized &&
- charge_port == CHARGE_PORT_NONE &&
- charge_get_percent() < 2)
- return -1;
if (is_real_port && source) {
CPRINTF("Skip enable p%d", charge_port);
@@ -316,7 +305,6 @@ int board_set_active_charge_port(int charge_port)
gpio_set_level(GPIO_USB_C0_CHARGE_L, 0);
}
- initialized = 1;
return EC_SUCCESS;
}