From af403b66288ac4a5a46644e435cc9b8eb381ad10 Mon Sep 17 00:00:00 2001 From: Denis Brockus Date: Mon, 15 Jun 2020 06:04:26 -0600 Subject: nct3807: use tcpci version of enable_drp With the latest spec, it makes more sense to go back to the default implementation of enable_drp BUG=none BRANCH=none TEST=verify basic USB-C on trembyle Signed-off-by: Denis Brockus Change-Id: I5d63fa94ab832feb2063e13f46ed4be0a2bc44e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2250091 Tested-by: Denis Brockus Commit-Queue: Denis Brockus Reviewed-by: Diana Z --- driver/tcpm/nct38xx.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'driver/tcpm') diff --git a/driver/tcpm/nct38xx.c b/driver/tcpm/nct38xx.c index 07289fc3b9..98fd514a35 100644 --- a/driver/tcpm/nct38xx.c +++ b/driver/tcpm/nct38xx.c @@ -134,27 +134,6 @@ static void nct38xx_tcpc_alert(int port) } -static __maybe_unused int nct3807_tcpc_drp_toggle(int port) -{ - int rv; - - /* DRP will already be set with the correct pull on both CC lines */ - - /* Set up to catch LOOK4CONNECTION alerts */ - rv = tcpc_update8(port, - TCPC_REG_TCPC_CTRL, - TCPC_REG_TCPC_CTRL_EN_LOOK4CONNECTION_ALERT, - MASK_SET); - if (rv) - return rv; - - /* Set Look4Connection command */ - rv = tcpc_write(port, TCPC_REG_COMMAND, - TCPC_REG_COMMAND_LOOK4CONNECTION); - - return rv; -} - static int nct3807_handle_fault(int port, int fault) { int rv = EC_SUCCESS; @@ -202,7 +181,7 @@ const struct tcpm_drv nct38xx_tcpm_drv = { .tcpc_enable_auto_discharge_disconnect = &tcpci_tcpc_enable_auto_discharge_disconnect, #ifdef CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE - .drp_toggle = &nct3807_tcpc_drp_toggle, + .drp_toggle = &tcpci_tcpc_drp_toggle, .set_connection = &tcpci_tcpc_set_connection, #endif #ifdef CONFIG_USBC_PPC -- cgit v1.2.1