ANDROID: GKI: USB: pd: Extcon fix for C current
This is a partial cherrypick.
It is required to notify device as selfpowered and bmaxpower as zero
even for non PD capable devices based on Type C current. Hence notify
as selfpowerer in bmAttributes of configuration descriptor in case of
medium or high Type C current.
Change-Id: Ie552560d93a8195f4c69fdaf6086ef3a52b31d39
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Bug: 150893404
(cherry picked from commit 29ffacc34b)
Signed-off-by: Saravana Kannan <saravanak@google.com>
This commit is contained in:
committed by
Saravana Kannan
parent
8a744ca663
commit
77379e5ac1
@@ -125,14 +125,19 @@
|
||||
* @type: integer (intval)
|
||||
* @value: 0 (USB/USB2) or 1 (USB3)
|
||||
* @default: 0 (USB/USB2)
|
||||
* - EXTCON_PROP_USB_TYPEC_MED_HIGH_CURRENT
|
||||
* @type: integer (intval)
|
||||
* @value: 0 (default current), 1 (medium or high current)
|
||||
* @default: 0 (default current)
|
||||
*
|
||||
*/
|
||||
#define EXTCON_PROP_USB_VBUS 0
|
||||
#define EXTCON_PROP_USB_TYPEC_POLARITY 1
|
||||
#define EXTCON_PROP_USB_SS 2
|
||||
#define EXTCON_PROP_USB_TYPEC_MED_HIGH_CURRENT 3
|
||||
|
||||
#define EXTCON_PROP_USB_MIN 0
|
||||
#define EXTCON_PROP_USB_MAX 2
|
||||
#define EXTCON_PROP_USB_MAX 3
|
||||
#define EXTCON_PROP_USB_CNT (EXTCON_PROP_USB_MAX - EXTCON_PROP_USB_MIN + 1)
|
||||
|
||||
/* Properties of EXTCON_TYPE_CHG. */
|
||||
|
||||
Reference in New Issue
Block a user