diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-05-24 06:18:52 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-17 07:00:59 -0400 |
commit | 0b24edb1c7d5aeadde0e38337b9b86fe16064505 (patch) | |
tree | 185138c46f3129daa146c6f9470b2915cea7008e /include/video | |
parent | 4635c17d32359e10bcaba3d1835e4aaaea685298 (diff) |
OMAPDSS: DPI: Add ops
Add "ops" style method for using DPI 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.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index cff514eec584..71fe1566ce01 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -573,6 +573,25 @@ struct omap_dss_writeback_info { | |||
573 | u8 pre_mult_alpha; | 573 | u8 pre_mult_alpha; |
574 | }; | 574 | }; |
575 | 575 | ||
576 | struct omapdss_dpi_ops { | ||
577 | int (*connect)(struct omap_dss_device *dssdev, | ||
578 | struct omap_dss_device *dst); | ||
579 | void (*disconnect)(struct omap_dss_device *dssdev, | ||
580 | struct omap_dss_device *dst); | ||
581 | |||
582 | int (*enable)(struct omap_dss_device *dssdev); | ||
583 | void (*disable)(struct omap_dss_device *dssdev); | ||
584 | |||
585 | int (*check_timings)(struct omap_dss_device *dssdev, | ||
586 | struct omap_video_timings *timings); | ||
587 | void (*set_timings)(struct omap_dss_device *dssdev, | ||
588 | struct omap_video_timings *timings); | ||
589 | void (*get_timings)(struct omap_dss_device *dssdev, | ||
590 | struct omap_video_timings *timings); | ||
591 | |||
592 | void (*set_data_lines)(struct omap_dss_device *dssdev, int data_lines); | ||
593 | }; | ||
594 | |||
576 | struct omap_dss_device { | 595 | struct omap_dss_device { |
577 | /* old device, to be removed */ | 596 | /* old device, to be removed */ |
578 | struct device old_dev; | 597 | struct device old_dev; |
@@ -638,6 +657,10 @@ struct omap_dss_device { | |||
638 | 657 | ||
639 | struct omap_dss_driver *driver; | 658 | struct omap_dss_driver *driver; |
640 | 659 | ||
660 | union { | ||
661 | const struct omapdss_dpi_ops *dpi; | ||
662 | } ops; | ||
663 | |||
641 | /* helper variable for driver suspend/resume */ | 664 | /* helper variable for driver suspend/resume */ |
642 | bool activate_after_resume; | 665 | bool activate_after_resume; |
643 | 666 | ||