diff options
Diffstat (limited to 'common/usbc/usb_pe_drp_sm.c')
-rw-r--r-- | common/usbc/usb_pe_drp_sm.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c index 12735eed71..3bed89f8ee 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -4601,13 +4601,6 @@ struct pd_policy *pd_get_am_policy(int port) return &pe[port].am_policy; } -int pd_alt_mode(int port, uint16_t svid) -{ - struct svdm_amode_data *modep = pd_get_amode_data(port, svid); - - return (modep) ? modep->opos : -1; -} - void pd_set_dfp_enter_mode_flag(int port, bool set) { if (set) @@ -4616,36 +4609,6 @@ void pd_set_dfp_enter_mode_flag(int port, bool set) PE_CLR_FLAG(port, PE_FLAGS_MODAL_OPERATION); } -uint16_t pd_get_identity_vid(int port) -{ - return PD_IDH_VID(pe[port].am_policy.identity[0]); -} - -uint16_t pd_get_identity_pid(int port) -{ - return PD_PRODUCT_PID(pe[port].am_policy.identity[2]); -} - -uint8_t pd_get_product_type(int port) -{ - return PD_IDH_PTYPE(pe[port].am_policy.identity[0]); -} - -int pd_get_svid_count(int port) -{ - return pe[port].am_policy.svid_cnt; -} - -uint16_t pd_get_svid(int port, uint16_t svid_idx) -{ - return pe[port].am_policy.svids[svid_idx].svid; -} - -uint32_t *pd_get_mode_vdo(int port, uint16_t svid_idx) -{ - return pe[port].am_policy.svids[svid_idx].mode_vdo; -} - #ifdef CONFIG_CMD_USB_PD_PE static void dump_pe(int port) { |