aboutsummaryrefslogtreecommitdiffstats
path: root/include/video/omapdss.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/video/omapdss.h')
-rw-r--r--include/video/omapdss.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index ac2e4cca5a23..e202648166d2 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -208,6 +208,16 @@ enum omap_hdmi_flags {
208 OMAP_HDMI_SDA_SCL_EXTERNAL_PULLUP = 1 << 0, 208 OMAP_HDMI_SDA_SCL_EXTERNAL_PULLUP = 1 << 0,
209}; 209};
210 210
211enum omap_dss_output_id {
212 OMAP_DSS_OUTPUT_DPI = 1 << 0,
213 OMAP_DSS_OUTPUT_DBI = 1 << 1,
214 OMAP_DSS_OUTPUT_SDI = 1 << 2,
215 OMAP_DSS_OUTPUT_DSI1 = 1 << 3,
216 OMAP_DSS_OUTPUT_DSI2 = 1 << 4,
217 OMAP_DSS_OUTPUT_VENC = 1 << 5,
218 OMAP_DSS_OUTPUT_HDMI = 1 << 6,
219};
220
211/* RFBI */ 221/* RFBI */
212 222
213struct rfbi_timings { 223struct rfbi_timings {
@@ -493,6 +503,24 @@ struct omap_dsi_pin_config {
493 int pins[OMAP_DSS_MAX_DSI_PINS]; 503 int pins[OMAP_DSS_MAX_DSI_PINS];
494}; 504};
495 505
506struct omap_dss_output {
507 struct list_head list;
508
509 /* display type supported by the output */
510 enum omap_display_type type;
511
512 /* output instance */
513 enum omap_dss_output_id id;
514
515 /* output's platform device pointer */
516 struct platform_device *pdev;
517
518 /* dynamic fields */
519 struct omap_overlay_manager *manager;
520
521 struct omap_dss_device *device;
522};
523
496struct omap_dss_device { 524struct omap_dss_device {
497 struct device dev; 525 struct device dev;
498 526
@@ -702,6 +730,8 @@ struct omap_overlay_manager *omap_dss_get_overlay_manager(int num);
702int omap_dss_get_num_overlays(void); 730int omap_dss_get_num_overlays(void);
703struct omap_overlay *omap_dss_get_overlay(int num); 731struct omap_overlay *omap_dss_get_overlay(int num);
704 732
733struct omap_dss_output *omap_dss_get_output(enum omap_dss_output_id id);
734
705void omapdss_default_get_resolution(struct omap_dss_device *dssdev, 735void omapdss_default_get_resolution(struct omap_dss_device *dssdev,
706 u16 *xres, u16 *yres); 736 u16 *xres, u16 *yres);
707int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev); 737int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev);