summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/usb_common.c12
-rw-r--r--include/usb_pd.h7
2 files changed, 0 insertions, 19 deletions
diff --git a/common/usb_common.c b/common/usb_common.c
index 2ef12e9412..9d7159f81d 100644
--- a/common/usb_common.c
+++ b/common/usb_common.c
@@ -198,18 +198,6 @@ enum pd_cc_states pd_get_cc_state(enum tcpc_cc_voltage_status cc1,
return PD_CC_NONE;
}
-/**
- * This function checks the current CC status of the port partner
- * and returns true if the attached partner is debug accessory.
- */
-bool pd_is_debug_acc(int port)
-{
- enum pd_cc_states cc_state = pd_get_task_cc_state(port);
-
- return cc_state == PD_CC_UFP_DEBUG_ACC ||
- cc_state == PD_CC_DFP_DEBUG_ACC;
-}
-
__overridable int pd_board_check_request(uint32_t rdo, int pdo_cnt)
{
return EC_SUCCESS;
diff --git a/include/usb_pd.h b/include/usb_pd.h
index bf385c19c2..b2cadbc0d7 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -3188,13 +3188,6 @@ __override_proto void board_process_pd_alert(int port);
*/
void board_reset_pd_mcu(void);
-/**
- * Return true if specified PD port is debug accessory.
- *
- * @param port USB-C port number
- */
-bool pd_is_debug_acc(int port);
-
/*
* Notify the AP that we have entered into DisplayPort Alternate Mode. This
* sets a DP_ALT_MODE_ENTERED MKBP event which may wake the AP.