diff options
Diffstat (limited to 'include/linux/usb/tcpm.h')
| -rw-r--r-- | include/linux/usb/tcpm.h | 11 |
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 */ | ||
| 102 | enum 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 | */ |
| 139 | struct tcpc_dev { | 131 | struct 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); |
