diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2018-06-27 18:19:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-02 17:42:36 +0200 |
commit | e9576fe8e605c4413beb91b290b8a473985710de (patch) | |
tree | 74a555b52b85c2bb4b553db1e84f1f97b475d711 /include/linux/usb | |
parent | 49cbb33dfdeb7651b91c2316a61b644d8e6cfe22 (diff) | |
download | linux-e9576fe8e605c4413beb91b290b8a473985710de.tar.gz linux-e9576fe8e605c4413beb91b290b8a473985710de.tar.bz2 linux-e9576fe8e605c4413beb91b290b8a473985710de.zip |
usb: typec: tcpm: Support for Alternate Modes
This adds more complete handling of VDMs and registration of
partner alternate modes, and introduces callbacks for
alternate mode operations.
Only DFP role is supported for now.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/tcpm.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/usb/tcpm.h b/include/linux/usb/tcpm.h index 193920a2e05f..7e7fbfb84e8e 100644 --- a/include/linux/usb/tcpm.h +++ b/include/linux/usb/tcpm.h @@ -98,15 +98,6 @@ struct tcpc_config { #define TCPC_MUX_DP_ENABLED BIT(1) /* DP enabled */ #define TCPC_MUX_POLARITY_INVERTED BIT(2) /* Polarity inverted */ -/* Mux modes, decoded to attributes */ -enum tcpc_mux_mode { - TYPEC_MUX_NONE = 0, /* Open switch */ - TYPEC_MUX_USB = TCPC_MUX_USB_ENABLED, /* USB only */ - TYPEC_MUX_DP = TCPC_MUX_DP_ENABLED, /* DP only */ - TYPEC_MUX_DOCK = TCPC_MUX_USB_ENABLED | /* Both USB and DP */ - TCPC_MUX_DP_ENABLED, -}; - /** * struct tcpc_dev - Port configuration and callback functions * @config: Pointer to port configuration |