diff options
author | Chris Zhong <zyw@rock-chips.com> | 2016-07-21 12:13:02 -0400 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2016-09-10 07:18:55 -0400 |
commit | 2f25140601115cd1b278e208099c9ebc627b9481 (patch) | |
tree | 2663c0a1e6e1108d8dd180b90b4ed68383749299 /drivers/extcon | |
parent | a580982f0836e079171f65f22d82768a12f85570 (diff) |
extcon: Add EXTCON_DISP_DP and the property for USB Type-C
Add EXTCON_DISP_DP for the Display external connector. For Type-C
connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort
Alt Mode on USB Type-C Standard). The Type-C support both normal
and flipped orientation, so add a property to extcon.
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Chris Zhong <zyw@rock-chips.com>
Tested-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index 8fde4befaa51..a0a1eea18727 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c | |||
@@ -157,6 +157,11 @@ struct __extcon_info { | |||
157 | .id = EXTCON_DISP_VGA, | 157 | .id = EXTCON_DISP_VGA, |
158 | .name = "VGA", | 158 | .name = "VGA", |
159 | }, | 159 | }, |
160 | [EXTCON_DISP_DP] = { | ||
161 | .type = EXTCON_TYPE_DISP | EXTCON_TYPE_USB, | ||
162 | .id = EXTCON_DISP_DP, | ||
163 | .name = "DP", | ||
164 | }, | ||
160 | 165 | ||
161 | /* Miscellaneous external connector */ | 166 | /* Miscellaneous external connector */ |
162 | [EXTCON_DOCK] = { | 167 | [EXTCON_DOCK] = { |