extcon: Add support for USB connector speed

This allows extcon to notify the USB controller driver
to enumerate host/peripheral in high or super speed mode.

Change-Id: I425087a02b680a5a1bc0579fd4d1410eb92d8e4c
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
Hemant Kumar 2016-05-19 13:56:25 -07:00 committed by Kyle Yan
parent cf5a632479
commit d920806870
2 changed files with 6 additions and 0 deletions

View file

@ -66,6 +66,9 @@ static const char *extcon_name[] = {
/* connector orientation 0 - CC1, 1 - CC2 */ /* connector orientation 0 - CC1, 1 - CC2 */
[EXTCON_USB_CC] = "USB-CC", [EXTCON_USB_CC] = "USB-CC",
/* connector speed 0 - High Speed, 1 - Super Speed */
[EXTCON_USB_SPEED] = "USB-SPEED",
/* Display external connector */ /* Display external connector */
[EXTCON_DISP_HDMI] = "HDMI", [EXTCON_DISP_HDMI] = "HDMI",
[EXTCON_DISP_MHL] = "MHL", [EXTCON_DISP_MHL] = "MHL",

View file

@ -58,6 +58,9 @@
/* connector orientation 0 - CC1, 1 - CC2 */ /* connector orientation 0 - CC1, 1 - CC2 */
#define EXTCON_USB_CC 28 #define EXTCON_USB_CC 28
/* connector speed 0 - High Speed, 1 - super speed */
#define EXTCON_USB_SPEED 29
/* Display external connector */ /* Display external connector */
#define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */ #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */
#define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */ #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */