diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-05-10 06:02:32 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-17 07:00:47 -0400 |
commit | 6fcd485b04e67c370026b41a951e0dc410a8d47b (patch) | |
tree | 7ff169ed707a68c491e6967b7f1dfa6027f2a1bb /include/video | |
parent | 7e436bb2e3b14706a8bbed21d8d244a89199a907 (diff) |
OMAPDSS: add videomode conversion support
Add helper functions to convert between omapdss specific video timings
and the common videomode.
Eventually omapdss will be changed to use only the common video timings,
and these helper functions will make the transition easier.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/omapdss.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 4f52f523fba4..0324c7b8a3e0 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -23,6 +23,8 @@ | |||
23 | #include <linux/device.h> | 23 | #include <linux/device.h> |
24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
25 | 25 | ||
26 | #include <video/videomode.h> | ||
27 | |||
26 | #define DISPC_IRQ_FRAMEDONE (1 << 0) | 28 | #define DISPC_IRQ_FRAMEDONE (1 << 0) |
27 | #define DISPC_IRQ_VSYNC (1 << 1) | 29 | #define DISPC_IRQ_VSYNC (1 << 1) |
28 | #define DISPC_IRQ_EVSYNC_EVEN (1 << 2) | 30 | #define DISPC_IRQ_EVSYNC_EVEN (1 << 2) |
@@ -768,6 +770,11 @@ const char *omapdss_get_default_display_name(void); | |||
768 | int omap_dss_start_device(struct omap_dss_device *dssdev); | 770 | int omap_dss_start_device(struct omap_dss_device *dssdev); |
769 | void omap_dss_stop_device(struct omap_dss_device *dssdev); | 771 | void omap_dss_stop_device(struct omap_dss_device *dssdev); |
770 | 772 | ||
773 | void videomode_to_omap_video_timings(const struct videomode *vm, | ||
774 | struct omap_video_timings *ovt); | ||
775 | void omap_video_timings_to_videomode(const struct omap_video_timings *ovt, | ||
776 | struct videomode *vm); | ||
777 | |||
771 | int dss_feat_get_num_mgrs(void); | 778 | int dss_feat_get_num_mgrs(void); |
772 | int dss_feat_get_num_ovls(void); | 779 | int dss_feat_get_num_ovls(void); |
773 | enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel); | 780 | enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel); |