diff options
author | Sam Hurst <shurst@google.com> | 2019-11-08 13:48:55 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-22 23:15:44 +0000 |
commit | 9c2269ef66bb3001b42b78cdd67200a9fd871eaa (patch) | |
tree | f6ca81a23966d8eee8cba58c50eab29b9f1aa06d /include/usb_pe_sm.h | |
parent | 044f15584125158c867f581004551b7d4e82b9ac (diff) | |
download | chrome-ec-9c2269ef66bb3001b42b78cdd67200a9fd871eaa.tar.gz |
TCPMv2: ServoV4 is not recognized appropriately
Configure the port as a SNK with PD in DebugAccessory.SNK state
BUG=chromium:1020752
BRANCH=none
TEST=make -j buildall
Manual Test:
1: Connect Servo v4 with NeckTek charger pluged in DUT power port
The DUT negotiates to 20V, and starts charging.
Change-Id: Id44d566024b5016965f996435d11befdc1c53e98
Signed-off-by: Sam Hurst <shurst@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1906993
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/usb_pe_sm.h')
-rw-r--r-- | include/usb_pe_sm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usb_pe_sm.h b/include/usb_pe_sm.h index 2806f0702d..c786a31ebc 100644 --- a/include/usb_pe_sm.h +++ b/include/usb_pe_sm.h @@ -163,5 +163,12 @@ int pe_is_explicit_contract(int port); */ void pe_dpm_request(int port, enum pe_dpm_request req); +/* + * Return true if port partner is dualrole capable + * + * @param port USB-C port number + */ +int pd_is_port_partner_dualrole(int port); + #endif /* __CROS_EC_USB_PE_H */ |