diff options
Diffstat (limited to 'board/magolor/board.c')
-rw-r--r-- | board/magolor/board.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/board/magolor/board.c b/board/magolor/board.c index a64b7781be..f1fca86f90 100644 --- a/board/magolor/board.c +++ b/board/magolor/board.c @@ -420,11 +420,9 @@ int board_set_active_charge_port(int port) /* Disable all ports. */ if (port == CHARGE_PORT_NONE) { - for (i = 0; i < CONFIG_USB_PD_PORT_MAX_COUNT; i++) { + for (i = 0; i < CONFIG_USB_PD_PORT_MAX_COUNT; i++) tcpc_write(i, TCPC_REG_COMMAND, TCPC_REG_COMMAND_SNK_CTRL_LOW); - raa489000_enable_asgate(i, false); - } return EC_SUCCESS; } @@ -446,7 +444,6 @@ int board_set_active_charge_port(int port) if (tcpc_write(i, TCPC_REG_COMMAND, TCPC_REG_COMMAND_SNK_CTRL_LOW)) CPRINTS("p%d: sink path disable failed.", i); - raa489000_enable_asgate(i, false); } /* @@ -457,8 +454,7 @@ int board_set_active_charge_port(int port) charger_discharge_on_ac(1); /* Enable requested charge port. */ - if (raa489000_enable_asgate(port, true) || - tcpc_write(port, TCPC_REG_COMMAND, + if (tcpc_write(port, TCPC_REG_COMMAND, TCPC_REG_COMMAND_SNK_CTRL_HIGH)) { CPRINTS("p%d: sink path enable failed.", port); charger_discharge_on_ac(0); |