From 37f4f64fcd2467c007b08feab23bb1179f30824f Mon Sep 17 00:00:00 2001 From: Caveh Jalali <caveh@chromium.org> Date: Thu, 22 Jun 2023 17:00:09 -0700 Subject: mb/google/rex: Set AUX orientation at SoC to follow cable for kb8010 This configures the SoC to flip the orientation of the AUX pins to follow the orientation of the cable when using the kb8010 retimer. This is necessary when there is no external retimer/mux or the retimer/mux does not implement the flip. The kb8010 retimer does not support this feature, so let the SoC do the flip. BUG=b:267589112 TEST=verified DP-ALT mode works in both cable orientations on rex with reworked kb8010 DB by flykt@ Change-Id: Iad093e27617b80f8301008deb00b57fb9b3a48ba Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76137 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com> --- src/mainboard/google/rex/variants/rex0/variant.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google/rex/variants/rex0') diff --git a/src/mainboard/google/rex/variants/rex0/variant.c b/src/mainboard/google/rex/variants/rex0/variant.c index 032eef97c6..8cf8ce2420 100644 --- a/src/mainboard/google/rex/variants/rex0/variant.c +++ b/src/mainboard/google/rex/variants/rex0/variant.c @@ -31,7 +31,8 @@ void variant_update_soc_chip_config(struct soc_intel_meteorlake_config *config) config->cnvi_bt_audio_offload = fw_config_probe(FW_CONFIG(AUDIO, MAX98360_ALC5682I_I2S)); - if (fw_config_probe(FW_CONFIG(DB_USB, USB4_ANX7452)) || + if (fw_config_probe(FW_CONFIG(DB_USB, USB4_KB8010)) || + fw_config_probe(FW_CONFIG(DB_USB, USB4_ANX7452)) || fw_config_probe(FW_CONFIG(DB_USB, USB4_ANX7452_V2))) { /* * Configure TCP2 for -- cgit v1.2.3