aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2018-06-27 11:19:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-02 11:42:36 -0400
commite9576fe8e605c4413beb91b290b8a473985710de (patch)
tree74a555b52b85c2bb4b553db1e84f1f97b475d711 /include/linux/usb
parent49cbb33dfdeb7651b91c2316a61b644d8e6cfe22 (diff)
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.h9
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 {
98#define TCPC_MUX_DP_ENABLED BIT(1) /* DP enabled */ 98#define TCPC_MUX_DP_ENABLED BIT(1) /* DP enabled */
99#define TCPC_MUX_POLARITY_INVERTED BIT(2) /* Polarity inverted */ 99#define TCPC_MUX_POLARITY_INVERTED BIT(2) /* Polarity inverted */
100 100
101/* Mux modes, decoded to attributes */
102enum tcpc_mux_mode {
103 TYPEC_MUX_NONE = 0, /* Open switch */
104 TYPEC_MUX_USB = TCPC_MUX_USB_ENABLED, /* USB only */
105 TYPEC_MUX_DP = TCPC_MUX_DP_ENABLED, /* DP only */
106 TYPEC_MUX_DOCK = TCPC_MUX_USB_ENABLED | /* Both USB and DP */
107 TCPC_MUX_DP_ENABLED,
108};
109
110/** 101/**
111 * struct tcpc_dev - Port configuration and callback functions 102 * struct tcpc_dev - Port configuration and callback functions
112 * @config: Pointer to port configuration 103 * @config: Pointer to port configuration