Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe77e532 authored by Hemant Kumar's avatar Hemant Kumar Committed by Jeevan Shriram
Browse files

extcon: Add support for type-c connector orientation



Type-C cable can be connected in two different orientations.
Connector orientation information is required to configure
super speed phy lane. Extcon driver provides this information
using EXTCON_USB_CC.

Change-Id: Ib2c86970b30cb575146438611a11fde17ab106e8
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 066d3d62
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -63,6 +63,9 @@ static const char *extcon_name[] = {
	[EXTCON_JACK_SPDIF_IN]		= "SPDIF-IN",
	[EXTCON_JACK_SPDIF_OUT]		= "SPDIF-OUT",

	/* connector orientation 0 - CC1, 1 - CC2 */
	[EXTCON_USB_CC]			= "USB-CC",

	/* Display external connector */
	[EXTCON_DISP_HDMI]		= "HDMI",
	[EXTCON_DISP_MHL]		= "MHL",
+3 −0
Original line number Diff line number Diff line
@@ -55,6 +55,9 @@
#define EXTCON_JACK_SPDIF_IN	26	/* Sony Philips Digital InterFace */
#define EXTCON_JACK_SPDIF_OUT	27

/* connector orientation 0 - CC1, 1 - CC2 */
#define EXTCON_USB_CC		28

/* Display external connector */
#define EXTCON_DISP_HDMI	40	/* High-Definition Multimedia Interface */
#define EXTCON_DISP_MHL		41	/* Mobile High-Definition Link */