OSDN Git Service

drm/omap: add new connector types
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 27 Apr 2017 10:02:28 +0000 (13:02 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 07:57:12 +0000 (10:57 +0300)
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>
drivers/gpu/drm/omapdrm/omap_drv.c

index 51e0c39..b8d9be4 100644 (file)
@@ -133,6 +133,14 @@ static int get_connector_type(struct omap_dss_device *dssdev)
                return DRM_MODE_CONNECTOR_DVID;
        case OMAP_DISPLAY_TYPE_DSI:
                return DRM_MODE_CONNECTOR_DSI;
+       case OMAP_DISPLAY_TYPE_DPI:
+       case OMAP_DISPLAY_TYPE_DBI:
+               return DRM_MODE_CONNECTOR_DPI;
+       case OMAP_DISPLAY_TYPE_VENC:
+               /* TODO: This could also be composite */
+               return DRM_MODE_CONNECTOR_SVIDEO;
+       case OMAP_DISPLAY_TYPE_SDI:
+               return DRM_MODE_CONNECTOR_LVDS;
        default:
                return DRM_MODE_CONNECTOR_Unknown;
        }