History

usb: typec: tcpm: Support bist test data mode for compliance

TCPM supports BIST carried mode. PD compliance tests require BIST Test Data to be supported as well. Introducing set_bist_data callback to signal tcpc driver for configuring the port controller hardware to enable/disable BIST Test Data mode.

Badhri Jagan Sridharan committed 6 years ago

Commit b2dcfef1 parent d25d61b2 files · +13 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/usb/tcpm.h+2−0
@@ -79,6 +79,7 @@ enum tcpm_transmit_type { · 78 unmodified lines
79 * @try_role: Optional; called to set a preferred role79 * @try_role: Optional; called to set a preferred role
80 * @pd_transmit:Called to transmit PD message80 * @pd_transmit:Called to transmit PD message
81 * @mux: Pointer to multiplexer data81 * @mux: Pointer to multiplexer data
82 * @set_bist_data: Turn on/off bist data mode for compliance testing
82 */83 */
83struct tcpc_dev {84struct tcpc_dev {
84 struct fwnode_handle *fwnode;85 struct fwnode_handle *fwnode;
@@ -103,6 +104,7 @@ struct tcpc_dev { · 18 unmodified lines
103 int (*try_role)(struct tcpc_dev *dev, int role);104 int (*try_role)(struct tcpc_dev *dev, int role);
104 int (*pd_transmit)(struct tcpc_dev *dev, enum tcpm_transmit_type type,105 int (*pd_transmit)(struct tcpc_dev *dev, enum tcpm_transmit_type type,
105 const struct pd_message *msg);106 const struct pd_message *msg);
107 int (*set_bist_data)(struct tcpc_dev *dev, bool on);
106};108};
107 109
108struct tcpm_port;110struct tcpm_port;