drm/omap: Add support for drm_panel
Hook up drm_panel support in the omapdrm driver. The change is relatively simply as the way has been paved by drm_bridge support already. In addition to looking up, attaching to and detaching from the panel, we only need to add panel support in the connector .get_modes() handler, take connector bus flags (set by the panel) into account, and enable/disable the panel in the encoder enable/disable operations handlers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Tested-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

parent
79107f274b
commit
30b7176195
@@ -157,7 +157,8 @@ struct omap_dss_device *omapdss_device_next_output(struct omap_dss_device *from)
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (dssdev->id && (dssdev->next || dssdev->bridge))
|
||||
if (dssdev->id &&
|
||||
(dssdev->next || dssdev->bridge || dssdev->panel))
|
||||
goto done;
|
||||
}
|
||||
|
||||
@@ -192,10 +193,11 @@ int omapdss_device_connect(struct dss_device *dss,
|
||||
if (!dst) {
|
||||
/*
|
||||
* The destination is NULL when the source is connected to a
|
||||
* bridge instead of a DSS device. Stop here, we will attach the
|
||||
* bridge later when we will have a DRM encoder.
|
||||
* bridge or panel instead of a DSS device. Stop here, we will
|
||||
* attach the bridge or panel later when we will have a DRM
|
||||
* encoder.
|
||||
*/
|
||||
return src && src->bridge ? 0 : -EINVAL;
|
||||
return src && (src->bridge || src->panel) ? 0 : -EINVAL;
|
||||
}
|
||||
|
||||
if (omapdss_device_is_connected(dst))
|
||||
@@ -223,7 +225,7 @@ void omapdss_device_disconnect(struct omap_dss_device *src,
|
||||
dst ? dev_name(dst->dev) : "NULL");
|
||||
|
||||
if (!dst) {
|
||||
WARN_ON(!src->bridge);
|
||||
WARN_ON(!src->bridge && !src->panel);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user