summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpoornima tom <poornima.tom@intel.com>2021-09-06 17:46:04 +0530
committerCommit Bot <commit-bot@chromium.org>2021-09-17 09:54:23 +0000
commit4439b16ff1a4ca1077d1b2043159bec93f7813b7 (patch)
tree16ceae9b2e83df883f5f08903f86e11c063d36fa
parent76769448f779d611b09ad1992c63d0f4156ec713 (diff)
downloadchrome-ec-4439b16ff1a4ca1077d1b2043159bec93f7813b7.tar.gz
adlrvp: Remove retimer support for N SKU
Type-C ports of ADL-N based RVP SKU do not have retimers. Hence, removed the reference for retimers based on board id of the ADL-N platform at run time. BUG=none BRANCH=none TEST=Tested on ADL-N Signed-off-by: poornima tom <poornima.tom@intel.com> Change-Id: I0e57fc199cc4a0192056eff35ba10fbac457cf4f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3143407 Reviewed-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org> Tested-by: Deepti Deshatty <deepti.deshatty@intel.corp-partner.google.com> Commit-Queue: caveh jalali <caveh@chromium.org>
-rw-r--r--baseboard/intelrvp/adlrvp.c15
-rw-r--r--baseboard/intelrvp/adlrvp.h2
2 files changed, 17 insertions, 0 deletions
diff --git a/baseboard/intelrvp/adlrvp.c b/baseboard/intelrvp/adlrvp.c
index 8b5518aaf7..78f4b3613a 100644
--- a/baseboard/intelrvp/adlrvp.c
+++ b/baseboard/intelrvp/adlrvp.c
@@ -329,6 +329,15 @@ DECLARE_HOOK(HOOK_INIT, enable_h1_irq, HOOK_PRIO_LAST);
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;
+#if defined(HAS_TASK_PD_C1)
+ usb_muxes[TYPE_C_PORT_1].driver = NULL;
+#endif
+ break;
+
case ADLP_LP5_T4_RVP_SKU_BOARD_ID:
/* No retimer on Port-2 */
#if defined(HAS_TASK_PD_C2)
@@ -418,6 +427,12 @@ __override bool board_is_tbt_usb4_port(int port)
bool tbt_usb4 = true;
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 both ports */
+ tbt_usb4 = false;
+ break;
+
case ADLP_LP5_T4_RVP_SKU_BOARD_ID:
/* No retimer on Port-2 hence no platform level AUX & LSx mux */
#if defined(HAS_TASK_PD_C2)
diff --git a/baseboard/intelrvp/adlrvp.h b/baseboard/intelrvp/adlrvp.h
index 493018e2c4..e907866c70 100644
--- a/baseboard/intelrvp/adlrvp.h
+++ b/baseboard/intelrvp/adlrvp.h
@@ -15,6 +15,8 @@
/* RVP Board ids */
#define CONFIG_BOARD_VERSION_GPIO
+#define ADLN_LP5_ERB_SKU_BOARD_ID 0x06
+#define ADLN_LP5_RVP_SKU_BOARD_ID 0x07
#define ADLP_DDR5_RVP_SKU_BOARD_ID 0x12
#define ADLP_LP5_T4_RVP_SKU_BOARD_ID 0x13
#define ADL_RVP_BOARD_ID(id) ((id) & 0x3F)