Skip to content

Commit 0d543f7

Browse files
Bin Yangrkhuangtao
authored andcommitted
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>
1 parent d3b46bb commit 0d543f7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/extcon/extcon.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ struct __extcon_info {
6161
.id = EXTCON_USB_HOST,
6262
.name = "USB_HOST",
6363
},
64+
[EXTCON_USB_VBUS_EN] = {
65+
.type = EXTCON_TYPE_USB,
66+
.id = EXTCON_USB_VBUS_EN,
67+
.name = "USB_VBUS_EN",
68+
},
6469

6570
/* Charging external connector */
6671
[EXTCON_CHG_USB_SDP] = {

include/linux/extcon.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
/* USB external connector */
4646
#define EXTCON_USB 1
4747
#define EXTCON_USB_HOST 2
48+
#define EXTCON_USB_VBUS_EN 3
4849

4950
/* Charging external connector */
5051
#define EXTCON_CHG_USB_SDP 5 /* Standard Downstream Port */

0 commit comments

Comments
 (0)