diff options
Diffstat (limited to 'drivers/video/omap2/dss/display.c')
-rw-r--r-- | drivers/video/omap2/dss/display.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c index c2dfc8c..8b3b360 100644 --- a/drivers/video/omap2/dss/display.c +++ b/drivers/video/omap2/dss/display.c @@ -339,6 +339,18 @@ void default_get_overlay_fifo_thresholds(enum omap_plane plane, *fifo_low = fifo_size - burst_size_bytes; } +void omapdss_display_get_dimensions(struct omap_dss_device *dssdev, + u32 *width_in_um, u32 *height_in_um) +{ + if (dssdev->driver->get_dimensions) { + dssdev->driver->get_dimensions(dssdev, + width_in_um, width_in_um); + } else { + *width_in_um = dssdev->panel.width_in_um; + *height_in_um = dssdev->panel.height_in_um; + } +} + int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev) { switch (dssdev->type) { @@ -446,6 +458,8 @@ void dss_init_device(struct platform_device *pdev, return; } + BLOCKING_INIT_NOTIFIER_HEAD(&dssdev->state_notifiers); + /* create device sysfs files */ i = 0; while ((attr = display_sysfs_attrs[i++]) != NULL) { |