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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -79,6 +79,7 @@ enum tcpm_transmit_type { · 78 unmodified lines | ||
| 79 | 79 | * @try_role: Optional; called to set a preferred role |
| 80 | 80 | * @pd_transmit:Called to transmit PD message |
| 81 | 81 | * @mux: Pointer to multiplexer data |
| 82 | + * @set_bist_data: Turn on/off bist data mode for compliance testing | |
| 82 | 83 | */ |
| 83 | 84 | struct tcpc_dev { |
| 84 | 85 | struct fwnode_handle *fwnode; |
| @@ -103,6 +104,7 @@ struct tcpc_dev { · 18 unmodified lines | ||
| 103 | 104 | int (*try_role)(struct tcpc_dev *dev, int role); |
| 104 | 105 | int (*pd_transmit)(struct tcpc_dev *dev, enum tcpm_transmit_type type, |
| 105 | 106 | const struct pd_message *msg); |
| 107 | + int (*set_bist_data)(struct tcpc_dev *dev, bool on); | |
| 106 | 108 | }; |
| 107 | 109 | |
| 108 | 110 | struct tcpm_port; |