aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-04-27 06:02:28 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-06-02 03:57:12 -0400
commit564f88c1b975bd26ddcea961fd95f14108ef3f69 (patch)
tree081f24d3469f6295d00272a115e0433090674a73
parent54156c2a17a3641f3666df602914433590c97ea4 (diff)
drm/omap: add new connector types
We have been using DRM_MODE_CONNECTOR_Unknown for many of our outputs because there has not been a proper connector type for them. We now have connector type for DPI so let's take it into use. At the same time, add better connector types for the remaining outputs too. This patch sets the following outputs to use the following connector types: DPI -> DPI DBI -> DPI (MIPI DBI is very similar to DPI at the bus level) SDI -> LVDS (SDI, TI Flatlink 3G, is a type of LVDS) VENC -> SVIDEO or Composite Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/gpu/drm/omapdrm/omap_drv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c
index 51e0c3958796..b8d9be4f136a 100644
--- a/drivers/gpu/drm/omapdrm/omap_drv.c
+++ b/drivers/gpu/drm/omapdrm/omap_drv.c
@@ -133,6 +133,14 @@ static int get_connector_type(struct omap_dss_device *dssdev)
133 return DRM_MODE_CONNECTOR_DVID; 133 return DRM_MODE_CONNECTOR_DVID;
134 case OMAP_DISPLAY_TYPE_DSI: 134 case OMAP_DISPLAY_TYPE_DSI:
135 return DRM_MODE_CONNECTOR_DSI; 135 return DRM_MODE_CONNECTOR_DSI;
136 case OMAP_DISPLAY_TYPE_DPI:
137 case OMAP_DISPLAY_TYPE_DBI:
138 return DRM_MODE_CONNECTOR_DPI;
139 case OMAP_DISPLAY_TYPE_VENC:
140 /* TODO: This could also be composite */
141 return DRM_MODE_CONNECTOR_SVIDEO;
142 case OMAP_DISPLAY_TYPE_SDI:
143 return DRM_MODE_CONNECTOR_LVDS;
136 default: 144 default:
137 return DRM_MODE_CONNECTOR_Unknown; 145 return DRM_MODE_CONNECTOR_Unknown;
138 } 146 }