diff options
author | lschyi <lschyi@google.com> | 2022-06-08 15:31:43 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-08 09:47:21 +0000 |
commit | bbc9f595470d8a5a60c00cae361f299ab900fd5e (patch) | |
tree | d2e5fddd8c09ee1242b97828d13fbe99ad7f14fd | |
parent | bec50dfb0660145734c163c2fd2129149e3d5d98 (diff) | |
download | chrome-ec-bbc9f595470d8a5a60c00cae361f299ab900fd5e.tar.gz |
corsola: Enable type c sbu in svdm_dp_post_config
Corsola platform overrides the svdm_dp_post_config but not enable the
sbu in it. Enable the type c sbu settings in svdm_dp_post_config so that
external display is available.
BUG=b:208372205
TEST=manually test with inserting a type c display, then check the SBU
register is set enabled and external display is functioning.
BRANCH=none
Signed-off-by: lschyi <lschyi@google.com>
Change-Id: I02096a04966e0bb4f7f1bb42df6bac904043ea8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3694922
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Sung-Chi Li <lschyi@chromium.org>
Tested-by: Sung-Chi Li <lschyi@chromium.org>
-rw-r--r-- | zephyr/projects/corsola/src/usb_pd_policy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/projects/corsola/src/usb_pd_policy.c b/zephyr/projects/corsola/src/usb_pd_policy.c index cdcb49ff2e..c9015de776 100644 --- a/zephyr/projects/corsola/src/usb_pd_policy.c +++ b/zephyr/projects/corsola/src/usb_pd_policy.c @@ -8,6 +8,7 @@ #include "chipset.h" #include "hooks.h" #include "timer.h" +#include "typec_control.h" #include "usb_dp_alt_mode.h" #include "usb_mux.h" #include "usb_pd.h" @@ -112,6 +113,8 @@ __override void svdm_dp_post_config(int port) { mux_state_t mux_mode = svdm_dp_get_mux_mode(port); + typec_set_sbu(port, true); + /* * Prior to post-config, the mux will be reset to safe mode, and this * will break mux config and aux path config we did in the first DP |