platform/chrome: cros_typec_switch: Add Pin D support
authorPrashant Malani <pmalani@chromium.org>
Mon, 8 May 2023 18:34:27 +0000 (18:34 +0000)
committerPrashant Malani <pmalani@chromium.org>
Thu, 11 May 2023 21:17:53 +0000 (21:17 +0000)
commitc9f9c6c875d14a107dabcf4579fcab95ed30af31
tree4423be6e3021d6805d91cf065b695e5065fd5dac
parentac9a78681b921877518763ba0e89202254349d1b
platform/chrome: cros_typec_switch: Add Pin D support

The ChromeOS EC's mux interface allows us to specify whether the port
should be configured for Pin Assignment D in DisplayPort alternate mode
(i.e 2 lanes USB + 2 lanes DP). Update the function that determines mux
state to account for Pin Assignment D and return the appropriate mux
setting.

Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230508183428.1893357-1-pmalani@chromium.org
drivers/platform/chrome/cros_typec_switch.c