platform/chrome: cros_ec_typec: Support DP alt mode
authorPrashant Malani <pmalani@chromium.org>
Thu, 28 May 2020 11:36:10 +0000 (04:36 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 19 Jun 2020 17:16:18 +0000 (19:16 +0200)
commit410457b99c7ea3e0cf8de1054e175ba3c2213d33
tree19ae02a6f5356d3d1b2a7ec5d5c5a0d55c88b558
parent7e7def15fa4bc9d6a2fa3d1d379286591c249381
platform/chrome: cros_ec_typec: Support DP alt mode

Handle Chrome EC mux events to configure on-board muxes correctly while
entering DP alternate mode. Since we don't surface SVID and VDO
information regarding the DP alternate mode, configure the Type C
muxes directly from the port driver. Later, when mode discovery
information is correctly surfaced to the driver, we can register the DP
alternate mode driver and let it handle the mux configuration.

Also, modify the struct_typec_state state management to account for the
addition of DP alternate mode.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec_typec.c