From bbc9f595470d8a5a60c00cae361f299ab900fd5e Mon Sep 17 00:00:00 2001 From: lschyi Date: Wed, 8 Jun 2022 15:31:43 +0800 Subject: 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 Change-Id: I02096a04966e0bb4f7f1bb42df6bac904043ea8a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3694922 Reviewed-by: Eric Yilun Lin Commit-Queue: Sung-Chi Li Tested-by: Sung-Chi Li --- zephyr/projects/corsola/src/usb_pd_policy.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.1