mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
usb: typec: Bus type for alternate modes
Introducing a simple bus for the alternate modes. Bus allows binding drivers to the discovered alternate modes the partners support. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4ab8c18d4d
commit
8a37d87d72
14 changed files with 1174 additions and 147 deletions
|
@ -746,4 +746,19 @@ struct tb_service_id {
|
|||
#define TBSVC_MATCH_PROTOCOL_VERSION 0x0004
|
||||
#define TBSVC_MATCH_PROTOCOL_REVISION 0x0008
|
||||
|
||||
/* USB Type-C Alternate Modes */
|
||||
|
||||
#define TYPEC_ANY_MODE 0x7
|
||||
|
||||
/**
|
||||
* struct typec_device_id - USB Type-C alternate mode identifiers
|
||||
* @svid: Standard or Vendor ID
|
||||
* @mode: Mode index
|
||||
*/
|
||||
struct typec_device_id {
|
||||
__u16 svid;
|
||||
__u8 mode;
|
||||
kernel_ulong_t driver_data;
|
||||
};
|
||||
|
||||
#endif /* LINUX_MOD_DEVICETABLE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue