summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2019-01-03 13:59:54 +0200
committerAndrzej Hajda <a.hajda@samsung.com>2019-01-09 10:49:31 +0100
commitf8c15790e4d8bdf2d21a5e9d43b5f97983af1222 (patch)
treedcfa342e7ee31a1450b4101f7b10c483d32ae97e /drivers/gpu
parent7923e09c7a766e2d58de7fc395bb84c18e5bc625 (diff)
downloadlinux-f8c15790e4d8bdf2d21a5e9d43b5f97983af1222.tar.gz
linux-f8c15790e4d8bdf2d21a5e9d43b5f97983af1222.tar.bz2
linux-f8c15790e4d8bdf2d21a5e9d43b5f97983af1222.zip
drm/bridge: tc358767: use DP connector if no panel set
tc358767 driver sets the connector type always to eDP. This patch sets the type to DP if there is no panel defined, which implies that there's a DP connector on the board. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190103115954.12785-8-tomi.valkeinen@ti.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/bridge/tc358767.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c
index 391547358756..e6403b9549f1 100644
--- a/drivers/gpu/drm/bridge/tc358767.c
+++ b/drivers/gpu/drm/bridge/tc358767.c
@@ -1209,7 +1209,8 @@ static int tc_bridge_attach(struct drm_bridge *bridge)
/* Create eDP connector */
drm_connector_helper_add(&tc->connector, &tc_connector_helper_funcs);
ret = drm_connector_init(drm, &tc->connector, &tc_connector_funcs,
- DRM_MODE_CONNECTOR_eDP);
+ tc->panel ? DRM_MODE_CONNECTOR_eDP :
+ DRM_MODE_CONNECTOR_DisplayPort);
if (ret)
return ret;