Commit 7700c2d4 authored by Tomi Valkeinen's avatar Tomi Valkeinen

OMAPDSS: DVI: Add ops

Add "ops" style method for using DVI 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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent b1082dfd
...@@ -611,6 +611,23 @@ struct omapdss_sdi_ops { ...@@ -611,6 +611,23 @@ struct omapdss_sdi_ops {
void (*set_datapairs)(struct omap_dss_device *dssdev, int datapairs); void (*set_datapairs)(struct omap_dss_device *dssdev, int datapairs);
}; };
struct omapdss_dvi_ops {
int (*connect)(struct omap_dss_device *dssdev,
struct omap_dss_device *dst);
void (*disconnect)(struct omap_dss_device *dssdev,
struct omap_dss_device *dst);
int (*enable)(struct omap_dss_device *dssdev);
void (*disable)(struct omap_dss_device *dssdev);
int (*check_timings)(struct omap_dss_device *dssdev,
struct omap_video_timings *timings);
void (*set_timings)(struct omap_dss_device *dssdev,
struct omap_video_timings *timings);
void (*get_timings)(struct omap_dss_device *dssdev,
struct omap_video_timings *timings);
};
struct omap_dss_device { struct omap_dss_device {
/* old device, to be removed */ /* old device, to be removed */
struct device old_dev; struct device old_dev;
...@@ -679,6 +696,7 @@ struct omap_dss_device { ...@@ -679,6 +696,7 @@ struct omap_dss_device {
union { union {
const struct omapdss_dpi_ops *dpi; const struct omapdss_dpi_ops *dpi;
const struct omapdss_sdi_ops *sdi; const struct omapdss_sdi_ops *sdi;
const struct omapdss_dvi_ops *dvi;
} ops; } ops;
/* helper variable for driver suspend/resume */ /* helper variable for driver suspend/resume */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment