From: Bin Yang Date: Fri, 23 Sep 2016 02:51:58 +0000 (+0800) Subject: extcon: Add EXTCON_USB_VBUS_EN for USB Type-C X-Git-Tag: firefly_0821_release~1457 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0d543f7452da2803f6c4fbfe5f701b028251e2b3;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index 519ac5c8bed1..f21ab75fdbab 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -61,6 +61,11 @@ 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] = { diff --git a/include/linux/extcon.h b/include/linux/extcon.h index 9147c421fb05..dd1f925d0e01 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -45,6 +45,7 @@ /* USB external connector */ #define EXTCON_USB 1 #define EXTCON_USB_HOST 2 +#define EXTCON_USB_VBUS_EN 3 /* Charging external connector */ #define EXTCON_CHG_USB_SDP 5 /* Standard Downstream Port */