summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepti Deshatty <deepti.deshatty@intel.corp-partner.google.com>2021-10-13 18:07:57 +0530
committerCommit Bot <commit-bot@chromium.org>2021-10-21 14:33:24 +0000
commitf9be5a7a5abbb10cef474b855e5da50d8edadbed (patch)
tree620ef715bc067a7224e4a45e47944586f820a2d8
parent30dff433c12dec225792ee8483c50d2c0e431e74 (diff)
downloadchrome-ec-f9be5a7a5abbb10cef474b855e5da50d8edadbed.tar.gz
adlrvp-n : configure typec ports redriver
ADL-N supports two typec ports. Typec port0 has TUSB1044 redriver and Port1 is a direct connection. Changes configure port0 usb mux driver to tusb1064 drivers and port1 usb mux drivers to none based on the ADL-N board id BRANCH=none TEST=type-c display verified on ADL-N ERB board Signed-off-by: Deepti Deshatty <deepti.deshatty@intel.corp-partner.google.com> Change-Id: I78defe364efab5368f9fc6eda9c41cd900a4948d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3220931 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Commit-Queue: caveh jalali <caveh@chromium.org>
-rw-r--r--baseboard/intelrvp/adlrvp.c11
-rw-r--r--baseboard/intelrvp/adlrvp.h1
2 files changed, 10 insertions, 2 deletions
diff --git a/baseboard/intelrvp/adlrvp.c b/baseboard/intelrvp/adlrvp.c
index 9946b7c832..13a0ee7d3d 100644
--- a/baseboard/intelrvp/adlrvp.c
+++ b/baseboard/intelrvp/adlrvp.c
@@ -16,6 +16,7 @@
#include "sn5s330.h"
#include "system.h"
#include "task.h"
+#include "tusb1064.h"
#include "usb_mux.h"
#include "usbc_ppc.h"
#include "util.h"
@@ -329,10 +330,16 @@ static void configure_retimer_usbmux(void)
switch (ADL_RVP_BOARD_ID(board_get_version())) {
case ADLN_LP5_ERB_SKU_BOARD_ID:
case ADLN_LP5_RVP_SKU_BOARD_ID:
- /* No retimer on Port0 & Port1 */
- usb_muxes[TYPE_C_PORT_0].driver = NULL;
+ /* enable TUSB1044RNQR redriver on Port0 */
+ usb_muxes[TYPE_C_PORT_0].i2c_addr_flags =
+ TUSB1064_I2C_ADDR14_FLAGS;
+ usb_muxes[TYPE_C_PORT_0].driver =
+ &tusb1064_usb_mux_driver;
+ usb_muxes[TYPE_C_PORT_0].hpd_update = tusb1044_hpd_update;
+
#if defined(HAS_TASK_PD_C1)
usb_muxes[TYPE_C_PORT_1].driver = NULL;
+ usb_muxes[TYPE_C_PORT_1].hpd_update = NULL;
#endif
break;
diff --git a/baseboard/intelrvp/adlrvp.h b/baseboard/intelrvp/adlrvp.h
index e4316c9013..4914293cd1 100644
--- a/baseboard/intelrvp/adlrvp.h
+++ b/baseboard/intelrvp/adlrvp.h
@@ -41,6 +41,7 @@
#define CONFIG_USB_PD_PORT_MAX_COUNT 1
#endif
#define CONFIG_USB_MUX_VIRTUAL
+#define CONFIG_USB_MUX_TUSB1044
#define PD_MAX_POWER_MW 100000
#define CONFIG_USB_PD_REQUIRE_AP_MODE_ENTRY