aboutsummaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-05-10 06:02:32 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-06-17 07:00:47 -0400
commit6fcd485b04e67c370026b41a951e0dc410a8d47b (patch)
tree7ff169ed707a68c491e6967b7f1dfa6027f2a1bb /include/video
parent7e436bb2e3b14706a8bbed21d8d244a89199a907 (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.h7
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);
768int omap_dss_start_device(struct omap_dss_device *dssdev); 770int omap_dss_start_device(struct omap_dss_device *dssdev);
769void omap_dss_stop_device(struct omap_dss_device *dssdev); 771void omap_dss_stop_device(struct omap_dss_device *dssdev);
770 772
773void videomode_to_omap_video_timings(const struct videomode *vm,
774 struct omap_video_timings *ovt);
775void omap_video_timings_to_videomode(const struct omap_video_timings *ovt,
776 struct videomode *vm);
777
771int dss_feat_get_num_mgrs(void); 778int dss_feat_get_num_mgrs(void);
772int dss_feat_get_num_ovls(void); 779int dss_feat_get_num_ovls(void);
773enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel); 780enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel);