mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
OMAPDSS: SDI: Add ops
Add "ops" style method for using SDI 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>
This commit is contained in:
parent
0b24edb1c7
commit
b1082dfd61
2 changed files with 98 additions and 0 deletions
|
@ -592,6 +592,25 @@ struct omapdss_dpi_ops {
|
|||
void (*set_data_lines)(struct omap_dss_device *dssdev, int data_lines);
|
||||
};
|
||||
|
||||
struct omapdss_sdi_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);
|
||||
|
||||
void (*set_datapairs)(struct omap_dss_device *dssdev, int datapairs);
|
||||
};
|
||||
|
||||
struct omap_dss_device {
|
||||
/* old device, to be removed */
|
||||
struct device old_dev;
|
||||
|
@ -659,6 +678,7 @@ struct omap_dss_device {
|
|||
|
||||
union {
|
||||
const struct omapdss_dpi_ops *dpi;
|
||||
const struct omapdss_sdi_ops *sdi;
|
||||
} ops;
|
||||
|
||||
/* helper variable for driver suspend/resume */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue