usb: typec: intel_pmc_mux: Configure Active and Retimer Cable type
authorUtkarsh Patel <utkarsh.h.patel@intel.com>
Tue, 18 Jul 2023 02:47:03 +0000 (19:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 16:20:42 +0000 (18:20 +0200)
commit8405bc521b768823ecc35f30792407dd247fb139
tree219c257b1db868112bcc85a012c211238b45b32c
parent451054c38b50ebd0730fd4e7d1b99ffc83b783ac
usb: typec: intel_pmc_mux: Configure Active and Retimer Cable type

Cable type such as active and retimer received as a part of Thunderbolt3
or Thunderbolt4 cable discover mode VDO needs to be configured in the
thunderbolt alternate mode.

Configuring the register bits for this cable type is changed with Intel
Meteor Lake platform. BIT2 for Retimer/Redriver cable and BIT22 for
Active/Passive cable.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
Link: https://lore.kernel.org/r/20230718024703.1013367-3-utkarsh.h.patel@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c