summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorli feng <li1.feng@intel.com>2021-09-23 22:01:53 -0700
committerCommit Bot <commit-bot@chromium.org>2021-09-28 05:16:02 +0000
commit092d5fc9da65f23e94c4a574bcdefd4f32a376c4 (patch)
treed5d38191eed8371b0e010892fca6b92a48d3e05c
parent9fc70659ae9cc8350e8734471bcffb55b2580f74 (diff)
downloadchrome-ec-092d5fc9da65f23e94c4a574bcdefd4f32a376c4.tar.gz
kano: configure PD port 1 dual retimersstabilize-14249.B-main
BUG=b:185952716 BRANCH=none TEST=make -j BOARD=kano Signed-off-by: li feng <li1.feng@intel.com> Change-Id: I1868de9fe45fc93e9a658b1f52f3bae3276c23c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3180804 Tested-by: David Huang <david.huang@quanta.corp-partner.google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
-rw-r--r--board/kano/board.h3
-rw-r--r--board/kano/usbc_config.c11
2 files changed, 13 insertions, 1 deletions
diff --git a/board/kano/board.h b/board/kano/board.h
index 8a846c69c3..3372c5f3d2 100644
--- a/board/kano/board.h
+++ b/board/kano/board.h
@@ -161,6 +161,9 @@
* see b/174768555#comment22
*/
#define USBC_PORT_C0_BB_RETIMER_I2C_ADDR 0x54
+/* SOC facing Burnside Bridge retimer */
+#define USBC_PORT_C1_SOC_BB_RETIMER_I2C_ADDR 0x55
+/* Type-C connector facing Burnside Bridge retimer */
#define USBC_PORT_C1_BB_RETIMER_I2C_ADDR 0x56
/* Enabling Thunderbolt-compatible mode */
diff --git a/board/kano/usbc_config.c b/board/kano/usbc_config.c
index 57fb63dca3..8f41a325b1 100644
--- a/board/kano/usbc_config.c
+++ b/board/kano/usbc_config.c
@@ -91,6 +91,15 @@ static const struct usb_mux usbc1_tcss_usb_mux = {
.hpd_update = &virtual_hpd_update,
};
+struct usb_mux soc_side_bb_retimer_usb_mux = {
+ .usb_port = USBC_PORT_C1,
+ .driver = &bb_usb_retimer,
+ .hpd_update = bb_retimer_hpd_update,
+ .i2c_port = I2C_PORT_USB_C1_MUX,
+ .i2c_addr_flags = USBC_PORT_C1_SOC_BB_RETIMER_I2C_ADDR,
+ .next_mux = &usbc1_tcss_usb_mux,
+};
+
const struct usb_mux usb_muxes[] = {
[USBC_PORT_C0] = {
.usb_port = USBC_PORT_C0,
@@ -106,7 +115,7 @@ const struct usb_mux usb_muxes[] = {
.hpd_update = bb_retimer_hpd_update,
.i2c_port = I2C_PORT_USB_C1_MUX,
.i2c_addr_flags = USBC_PORT_C1_BB_RETIMER_I2C_ADDR,
- .next_mux = &usbc1_tcss_usb_mux,
+ .next_mux = &soc_side_bb_retimer_usb_mux,
},
};
BUILD_ASSERT(ARRAY_SIZE(usb_muxes) == USBC_PORT_COUNT);