platform/chrome: cros_ec_typec: Register Type C switches
authorPrashant Malani <pmalani@chromium.org>
Tue, 19 May 2020 21:46:04 +0000 (14:46 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 19 Jun 2020 17:16:18 +0000 (19:16 +0200)
commitf28adb41dab4a2795fd959750df57adffd2bb0be
treedc3568aaa844a47d1b5d19224f60d86cf770349d
parentd378cdd0113878e3860f954d16dd3e91defb1492
platform/chrome: cros_ec_typec: Register Type C switches

Register Type C mux and switch handles, when provided via firmware
bindings. These will allow the cros-ec-typec driver, and also alternate
mode drivers to configure connected Muxes correctly, according to PD
information retrieved from the Chrome OS EC.

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