summaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorChris Zhong <zyw@rock-chips.com>2016-07-22 01:13:02 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2016-08-08 11:17:23 +0900
commit2164188d57f8862f1b69e2c5b7c0585f01077bee (patch)
treedf97a03682349c3e2e8bcb1139961573ee88cfb5 /drivers/extcon
parentab11af049f88f059a73f679fb050bd7abb98d24b (diff)
downloadop-kernel-dev-2164188d57f8862f1b69e2c5b7c0585f01077bee.zip
op-kernel-dev-2164188d57f8862f1b69e2c5b7c0585f01077bee.tar.gz
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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
index 8fde4be..a0a1eea 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -157,6 +157,11 @@ struct __extcon_info {
.id = EXTCON_DISP_VGA,
.name = "VGA",
},
+ [EXTCON_DISP_DP] = {
+ .type = EXTCON_TYPE_DISP | EXTCON_TYPE_USB,
+ .id = EXTCON_DISP_DP,
+ .name = "DP",
+ },
/* Miscellaneous external connector */
[EXTCON_DOCK] = {
OpenPOWER on IntegriCloud