summaryrefslogtreecommitdiff
path: root/driver/tcpm/tcpci.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/tcpm/tcpci.c')
-rw-r--r--driver/tcpm/tcpci.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/driver/tcpm/tcpci.c b/driver/tcpm/tcpci.c
index 80143de61d..4a9e8abe6f 100644
--- a/driver/tcpm/tcpci.c
+++ b/driver/tcpm/tcpci.c
@@ -380,7 +380,6 @@ int tcpci_tcpc_drp_toggle(int port)
if (rv)
return rv;
-#ifdef CONFIG_ZORK_AUTO_DISCHARGE
/* Set up to catch LOOK4CONNECTION alerts */
rv = tcpc_update8(port,
TCPC_REG_TCPC_CTRL,
@@ -388,7 +387,6 @@ int tcpci_tcpc_drp_toggle(int port)
MASK_SET);
if (rv)
return rv;
-#endif
/* Set Look4Connection command */
rv = tcpc_write(port, TCPC_REG_COMMAND,
@@ -397,7 +395,6 @@ int tcpci_tcpc_drp_toggle(int port)
return rv;
}
-#ifdef CONFIG_ZORK_AUTO_DISCHARGE
int tcpci_tcpc_set_connection(int port,
enum tcpc_cc_pull pull,
int connect)
@@ -512,7 +509,6 @@ int tcpci_tcpc_set_connection(int port,
return rv;
}
#endif
-#endif
#ifdef CONFIG_USB_PD_TCPC_LOW_POWER
int tcpci_enter_low_power_mode(int port)
@@ -1179,17 +1175,9 @@ int tcpci_tcpm_init(int port)
* Alert assertion when CC_STATUS.Looking4Connection changes state.
*/
if (tcpc_config[port].flags & TCPC_FLAGS_TCPCI_REV2_0) {
-#ifndef CONFIG_ZORK_AUTO_DISCHARGE
- int regval;
-
- error = tcpc_read(port, TCPC_REG_TCPC_CTRL, &regval);
- regval |= TCPC_REG_TCPC_CTRL_EN_LOOK4CONNECTION_ALERT;
- error |= tcpc_write(port, TCPC_REG_TCPC_CTRL, regval);
-#else
error = tcpc_update8(port, TCPC_REG_TCPC_CTRL,
TCPC_REG_TCPC_CTRL_EN_LOOK4CONNECTION_ALERT,
MASK_SET);
-#endif
if (error)
CPRINTS("C%d: Failed to init TCPC_CTRL!", port);
}