Skip to content

Commit

Permalink
extcon: Introduce EXTCON_PROP_USB_SS property for SuperSpeed mode
Browse files Browse the repository at this point in the history
EXTCON_PROP_USB_SS (SuperSpeed)[1] is necessary to distinguish
between USB/USB2 and USB3 connections on USB Type-C cables.

[1] https://en.wikipedia.org/wiki/USB#Overview

Cc: Chris Zhong <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>
  • Loading branch information
Guenter Roeck authored and chanwoochoi committed Aug 18, 2016
1 parent 7fe95fb commit 8457a1b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/linux/extcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,18 @@
* @type: integer (intval)
* @value: 0 (normal) or 1 (flip)
* @default: 0 (normal)
* - EXTCON_PROP_USB_SS (SuperSpeed)
* @type: integer (intval)
* @value: 0 (USB/USB2) or 1 (USB3)
* @default: 0 (USB/USB2)
*
*/
#define EXTCON_PROP_USB_VBUS 0
#define EXTCON_PROP_USB_TYPEC_POLARITY 1
#define EXTCON_PROP_USB_SS 2

#define EXTCON_PROP_USB_MIN 0
#define EXTCON_PROP_USB_MAX 1
#define EXTCON_PROP_USB_MAX 2
#define EXTCON_PROP_USB_CNT (EXTCON_PROP_USB_MAX - EXTCON_PROP_USB_MIN + 1)

/* Properties of EXTCON_TYPE_CHG. */
Expand Down

0 comments on commit 8457a1b

Please sign in to comment.