diff options
| author | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2018-08-28 11:06:16 +0530 |
|---|---|---|
| committer | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2018-09-05 14:46:32 +0530 |
| commit | 6494e9ee09caf8402f38aa94d95c0bba0882846a (patch) | |
| tree | c6964da5181617c46f2380017b34745ec840c25e /include/linux/extcon.h | |
| parent | 51740526b9b90ef772ba2c3c6b288f0d1688bb10 (diff) | |
USB: pd: Notify selfpowered state based on type C current
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 configuation descriptor in case of
medium or high Type C current.
Change-Id: Ie552560d93a8195f4c69fdaf6086ef3a52b31d39
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'include/linux/extcon.h')
| -rw-r--r-- | include/linux/extcon.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/extcon.h b/include/linux/extcon.h index e1360198955a..081afbe982c0 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -61,6 +61,9 @@ /* connector speed 0 - High Speed, 1 - super speed */ #define EXTCON_USB_SPEED 29 +/* connector type C current 0 - default current, 1 - medium or high current */ +#define EXTCON_USB_TYPEC_MED_HIGH_CURRENT 30 + /* Display external connector */ #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */ #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */ |
