aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/tcpm.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
committerTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
commitea4d65f14f6aaa53e379b93c5544245ef081b3e7 (patch)
treea15485f4f1cf547a52b31fa8e16e14b9579b7200 /include/linux/usb/tcpm.h
parentce32d59ee2cd036f6e8a6ed17a06a0b0bec5c67c (diff)
parent496f3347d834aec91c38b45d6249ed00f58ad233 (diff)
Merge branch 'perm-fix' into omap-for-v4.19/fixes-v2
Diffstat (limited to 'include/linux/usb/tcpm.h')
-rw-r--r--include/linux/usb/tcpm.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/linux/usb/tcpm.h b/include/linux/usb/tcpm.h
index b231b9314240..7e7fbfb84e8e 100644
--- a/include/linux/usb/tcpm.h
+++ b/include/linux/usb/tcpm.h
@@ -98,18 +98,10 @@ 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
104 * @fwnode: Pointer to port fwnode
113 * @get_vbus: Called to read current VBUS state 105 * @get_vbus: Called to read current VBUS state
114 * @get_current_limit: 106 * @get_current_limit:
115 * Optional; called by the tcpm core when configured as a snk 107 * Optional; called by the tcpm core when configured as a snk
@@ -138,6 +130,7 @@ enum tcpc_mux_mode {
138 */ 130 */
139struct tcpc_dev { 131struct tcpc_dev {
140 const struct tcpc_config *config; 132 const struct tcpc_config *config;
133 struct fwnode_handle *fwnode;
141 134
142 int (*init)(struct tcpc_dev *dev); 135 int (*init)(struct tcpc_dev *dev);
143 int (*get_vbus)(struct tcpc_dev *dev); 136 int (*get_vbus)(struct tcpc_dev *dev);