diff options
author | johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> | 2022-11-23 09:58:24 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-13 19:24:29 +0000 |
commit | 78eaccf378e8db32c4721f45e1325b1e06096313 (patch) | |
tree | 35a23e9903aa472607f445abcaa78b87d7d616bb /include | |
parent | f439c4f2098d14e66f29d2ac65dadc095d984e5d (diff) | |
download | chrome-ec-78eaccf378e8db32c4721f45e1325b1e06096313.tar.gz |
BB retimer: Add condition to set 'DP CONNECTION' bit
Set 'DP CONNECTION' bit when mux_state gets HPD event only on
the ports with HDMI/DP card
It will increase BBR power consumption, so set 'DP CONNECTION'
bit only when mux_state gets HPD event only on the ports with
HDMI/DP card.
BUG=b:233975818
BRANCH=None
TEST=Test on Banshee, when only hdmi card 'DP CONNECTION' bit
is 0. Enter console command bb 1 r 4 =0x403, plug in hdmi
monitor bb 1 r 4 =0x8503.
Run ./twister -T zephyr/test/drivers
Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com>
Change-Id: I87b2a4379e66e08830c556d703390a7fb96d3258
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4050320
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/driver/retimer/bb_retimer_public.h | 8 | ||||
-rw-r--r-- | include/usb_pd.h | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/driver/retimer/bb_retimer_public.h b/include/driver/retimer/bb_retimer_public.h index 35e289e2f2..fd63d81a35 100644 --- a/include/driver/retimer/bb_retimer_public.h +++ b/include/driver/retimer/bb_retimer_public.h @@ -56,4 +56,12 @@ __override_proto int bb_retimer_power_enable(const struct usb_mux *me, void bb_retimer_hpd_update(const struct usb_mux *me, mux_state_t hpd_state, bool *ack_required); +/** + * Enable/disable the DP state of BB retimer + * + * @param me Pointer to USB mux + * @param enable BB retimer DP state to be changed + */ +int bb_retimer_set_dp_connection(const struct usb_mux *me, bool enable); + #endif /* __CROS_EC_DRIVER_RETIMER_BB_RETIMER_PUBLIC_H */ diff --git a/include/usb_pd.h b/include/usb_pd.h index e4ab8f6432..ea8675318d 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -855,6 +855,10 @@ struct pd_cable { #define USB_VID_INTEL 0x8087 +#define USB_VID_FRAMEWORK 0X32ac +#define USB_PID_FRAMEWORK_HDMI_CARD 0X2 +#define USB_PID_FRAMEWORK_DP_CARD 0X3 + /* Timeout for message receive in microseconds */ #define USB_PD_RX_TMOUT_US 1800 |