aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_drv.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-04-23 08:35:35 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-06-17 07:00:42 -0400
commitbe8e8e1c62678765868c0bc7b8b5209c38af105c (patch)
tree405e8641bb55bbd9ab0b82f304961bb1a19474d7 /drivers/gpu/drm/omapdrm/omap_drv.c
parente724366498ead17579686f7ad83235f911a9c4f7 (diff)
OMAPDSS: add helpers to get mgr or output from display
Add two helper functions that can be used to find either the DSS output or the overlay manager that is connected to the given display. This hides how the output and the manager are actually connected, making it easier to change the connections in the future. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_drv.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_drv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c
index 826586ffbe83..b3577cb367af 100644
--- a/drivers/gpu/drm/omapdrm/omap_drv.c
+++ b/drivers/gpu/drm/omapdrm/omap_drv.c
@@ -247,6 +247,9 @@ static int omap_modeset_init(struct drm_device *dev)
247 struct drm_encoder *encoder = priv->encoders[i]; 247 struct drm_encoder *encoder = priv->encoders[i];
248 struct omap_dss_device *dssdev = 248 struct omap_dss_device *dssdev =
249 omap_encoder_get_dssdev(encoder); 249 omap_encoder_get_dssdev(encoder);
250 struct omap_dss_output *output;
251
252 output = omapdss_find_output_from_display(dssdev);
250 253
251 /* figure out which crtc's we can connect the encoder to: */ 254 /* figure out which crtc's we can connect the encoder to: */
252 encoder->possible_crtcs = 0; 255 encoder->possible_crtcs = 0;
@@ -259,7 +262,7 @@ static int omap_modeset_init(struct drm_device *dev)
259 supported_outputs = 262 supported_outputs =
260 dss_feat_get_supported_outputs(crtc_channel); 263 dss_feat_get_supported_outputs(crtc_channel);
261 264
262 if (supported_outputs & dssdev->output->id) 265 if (supported_outputs & output->id)
263 encoder->possible_crtcs |= (1 << id); 266 encoder->possible_crtcs |= (1 << id);
264 } 267 }
265 } 268 }