aboutsummaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-05-24 06:19:50 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-06-17 07:01:00 -0400
commitfb8efa49660ea450ad632c9d8b70f12e4a43a495 (patch)
tree04d9704190f3e7700966a786b7f377368744affc /include/video
parent7700c2d4f79c423f29a5c2c10ca5a9b9c8c5c60f (diff)
OMAPDSS: AnalogTV: Add ops
Add "ops" style method for using analog TV functionality. Ops style calls will allow us to have arbitrarily long display pipelines, where each entity can call ops in the previous display entity. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/omapdss.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index 3b3903fa1500..adb103633bd1 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -628,6 +628,31 @@ struct omapdss_dvi_ops {
628 struct omap_video_timings *timings); 628 struct omap_video_timings *timings);
629}; 629};
630 630
631struct omapdss_atv_ops {
632 int (*connect)(struct omap_dss_device *dssdev,
633 struct omap_dss_device *dst);
634 void (*disconnect)(struct omap_dss_device *dssdev,
635 struct omap_dss_device *dst);
636
637 int (*enable)(struct omap_dss_device *dssdev);
638 void (*disable)(struct omap_dss_device *dssdev);
639
640 int (*check_timings)(struct omap_dss_device *dssdev,
641 struct omap_video_timings *timings);
642 void (*set_timings)(struct omap_dss_device *dssdev,
643 struct omap_video_timings *timings);
644 void (*get_timings)(struct omap_dss_device *dssdev,
645 struct omap_video_timings *timings);
646
647 void (*set_type)(struct omap_dss_device *dssdev,
648 enum omap_dss_venc_type type);
649 void (*invert_vid_out_polarity)(struct omap_dss_device *dssdev,
650 bool invert_polarity);
651
652 int (*set_wss)(struct omap_dss_device *dssdev, u32 wss);
653 u32 (*get_wss)(struct omap_dss_device *dssdev);
654};
655
631struct omap_dss_device { 656struct omap_dss_device {
632 /* old device, to be removed */ 657 /* old device, to be removed */
633 struct device old_dev; 658 struct device old_dev;
@@ -697,6 +722,7 @@ struct omap_dss_device {
697 const struct omapdss_dpi_ops *dpi; 722 const struct omapdss_dpi_ops *dpi;
698 const struct omapdss_sdi_ops *sdi; 723 const struct omapdss_sdi_ops *sdi;
699 const struct omapdss_dvi_ops *dvi; 724 const struct omapdss_dvi_ops *dvi;
725 const struct omapdss_atv_ops *atv;
700 } ops; 726 } ops;
701 727
702 /* helper variable for driver suspend/resume */ 728 /* helper variable for driver suspend/resume */