From c860de1a5171ac97a29f8168760fe9f13a7e01bb Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Fri, 23 Sep 2016 10:51:58 +0800 Subject: [PATCH] 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 Signed-off-by: Frank Wang --- drivers/extcon/extcon.c | 5 +++++ include/linux/extcon.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index b9d27c8fe57e..6a75f06d8f0c 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -59,6 +59,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] = { diff --git a/include/linux/extcon.h b/include/linux/extcon.h index 7f033b1ea568..299ef08ac5cf 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