[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1473839072-5673-37-git-send-email-kishon@ti.com>
Date: Wed, 14 Sep 2016 13:14:17 +0530
From: Kishon Vijay Abraham I <kishon@...com>
To: <gregkh@...uxfoundation.org>
CC: <kishon@...com>, <linux-kernel@...r.kernel.org>
Subject: [PATCH 36/51] extcon: Introduce EXTCON_PROP_USB_SS property for SuperSpeed mode
From: Guenter Roeck <groeck@...omium.org>
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 <zyw@...k-chips.com>
Signed-off-by: Guenter Roeck <groeck@...omium.org>
Signed-off-by: Chanwoo Choi <cw00.choi@...sung.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@...com>
---
include/linux/extcon.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index 461abee..b34d1ae 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -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. */
--
1.7.9.5
Powered by blists - more mailing lists