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
7979 * @try_role: Optional; called to set a preferred role
8080 * @pd_transmit:Called to transmit PD message
8181 * @mux: Pointer to multiplexer data
82+ * @set_bist_data: Turn on/off bist data mode for compliance testing
8283 */
8384 struct tcpc_dev {
8485 struct fwnode_handle *fwnode;
@@ -103,6 +104,7 @@ struct tcpc_dev { · 18 unmodified lines
103104 int (*try_role)(struct tcpc_dev *dev, int role);
104105 int (*pd_transmit)(struct tcpc_dev *dev, enum tcpm_transmit_type type,
105106 const struct pd_message *msg);
107+ int (*set_bist_data)(struct tcpc_dev *dev, bool on);
106108 };
107109
108110 struct tcpm_port;