diff options
author | Ayushee <ayushee.shah@intel.com> | 2020-08-28 14:21:18 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-07 19:16:10 +0000 |
commit | f22925531a49127dca6b43b738e4c006fa33ff11 (patch) | |
tree | e35639ac48e59aad7ddde3e6c62d5f22d71d8e80 /include/usb_pd.h | |
parent | 840d7258423fced9538af206c2f13f8cd5600b59 (diff) | |
download | chrome-ec-f22925531a49127dca6b43b738e4c006fa33ff11.tar.gz |
BB retimer: Set UFP mode of BB retimer
This CL enables getting the enter mode information received from DFP
and sets the following BB retimer bits accordingly.
Bit 2: RE_TIMER_DRIVER
Bit 18: CABLE_TYPE
Bit 19: VPRO_DOCK_DETECTED
Bit 20: TBT_ACTIVE_LINK_TRAINING
Bit 22: ACTIVE/PASSIVE
Bits 27-25: TBT Cable speed
Bits 29-28: TBT_GEN_SUPPORT
BUG=b:157163664
BRANCH=None
TEST=Tested with volteer as UFP, able to set the retimer bits
Signed-off-by: Ayushee <ayushee.shah@intel.com>
Change-Id: I661aa4630b42fbaa136ff3855c4f70e3dee61546
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2382634
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index bcde9fabef..e0f0ac0e28 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -1707,6 +1707,23 @@ uint32_t pd_dfp_enter_mode(int port, enum tcpm_transmit_type type, uint16_t svid, int opos); /** + * Save the Enter mode command data received from the port partner for setting + * the retimer + * + * @param port USB-C port number + * @param payload payload data. + */ +void pd_ufp_set_enter_mode(int port, uint32_t *payload); + +/** + * Return Enter mode command data received from the port partner + * + * @param port USB-C port number + * @return enter mode raw value requested to the UFP + */ +uint32_t pd_ufp_get_enter_mode(int port); + +/** * Get DisplayPort pin mode for DFP to request from UFP's capabilities. * * @param port USB-C port number. |