diff options
Diffstat (limited to 'board/storo')
-rw-r--r-- | board/storo/board.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/board/storo/board.c b/board/storo/board.c index 7de876beee..3a3e7ab53d 100644 --- a/board/storo/board.c +++ b/board/storo/board.c @@ -387,12 +387,9 @@ int board_set_active_charge_port(int port) /* Disable all ports. */ if (port == CHARGE_PORT_NONE) { - for (i = 0; i < board_get_usb_pd_port_count(); i++) { + for (i = 0; i < board_get_usb_pd_port_count(); i++) tcpc_write(i, TCPC_REG_COMMAND, TCPC_REG_COMMAND_SNK_CTRL_LOW); - raa489000_enable_asgate(i, false); - } - return EC_SUCCESS; } @@ -413,7 +410,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); } /* @@ -424,8 +420,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); |