diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2020-02-10 17:22:37 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-12 20:05:32 +0000 |
commit | 7bbdd3cc90d174343cdc863515258de339f4c4dc (patch) | |
tree | fc11b65b5f175baa185829d3c13d9098d8cac1e9 /common/usbc/usb_pe_drp_sm.c | |
parent | 8d3e54731e8f2a47a1822d08f4a403aef28be1de (diff) | |
download | chrome-ec-7bbdd3cc90d174343cdc863515258de339f4c4dc.tar.gz |
TCPMv1/v2: Move pd_charge_from_device() to common file
BUG=b:148528713
BRANCH=none
TEST=make buildall -j
Change-Id: I2327ceaf6be76a0428981106aaeb3ffbb2018049
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2051217
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usbc/usb_pe_drp_sm.c')
-rw-r--r-- | common/usbc/usb_pe_drp_sm.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c index 704ea3d0b7..baaeb48ba4 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -4467,18 +4467,6 @@ unsigned int pd_get_max_voltage(void) return max_request_mv; } -int pd_charge_from_device(uint16_t vid, uint16_t pid) -{ - /* TODO: rewrite into table if we get more of these */ - /* - * White-list Apple charge-through accessory since it doesn't set - * unconstrained bit, but we still need to charge from it when - * we are a sink. - */ - return (vid == USB_VID_APPLE && - (pid == USB_PID1_APPLE || pid == USB_PID2_APPLE)); -} - void pd_dfp_pe_init(int port) { memset(&pe[port].am_policy, 0, sizeof(struct pd_policy)); |