extcon: Add EXTCON_USB_VBUS_EN for USB Type-C

Add the new extcon EXTCON_USB_VBUS_EN to enable
vbus output.

Change-Id: I83fb75b2a82ad617dc292967bb4917bbfbcb84cb
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This commit is contained in:
Bin Yang
2016-09-23 10:51:58 +08:00
committed by Tao Huang
parent 7771fc68f0
commit adc022b08c
2 changed files with 6 additions and 0 deletions

View File

@@ -51,6 +51,11 @@ static const struct __extcon_info {
.id = EXTCON_USB_HOST,
.name = "USB-HOST",
},
[EXTCON_USB_VBUS_EN] = {
.type = EXTCON_TYPE_USB,
.id = EXTCON_USB_VBUS_EN,
.name = "USB_VBUS_EN",
},
/* Charging external connector */
[EXTCON_CHG_USB_SDP] = {

View File

@@ -37,6 +37,7 @@
/* USB external connector */
#define EXTCON_USB 1
#define EXTCON_USB_HOST 2
#define EXTCON_USB_VBUS_EN 3
/*
* Charging external connector