aboutsummaryrefslogtreecommitdiffstats
path: root/include/video/omapdss.h
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2014-06-18 05:04:29 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-07-04 04:17:58 -0400
commit8c071caa7e9c584a97ca3cd33015b1d97d4f2250 (patch)
tree94229ddf6735e879ab56a7237c4057c37bc0c8ec /include/video/omapdss.h
parentbbcc14ebf913be0f11c08b346d070067f3fea332 (diff)
OMAPDSS: add hdmi ops to hdmi_ops and omap_dss_driver
Add two new ops for HDMI: set_infoframe() and set_hdmi_mode(). The first one can be used to specify the infoframe that should be sent to the HDMI monitor, and the second one is used to enable HDMI mode (versus DVI mode). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video/omapdss.h')
-rw-r--r--include/video/omapdss.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index fc06c5b5f12a..069dfca9549a 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -61,6 +61,7 @@ struct omap_overlay_manager;
61struct dss_lcd_mgr_config; 61struct dss_lcd_mgr_config;
62struct snd_aes_iec958; 62struct snd_aes_iec958;
63struct snd_cea_861_aud_if; 63struct snd_cea_861_aud_if;
64struct hdmi_avi_infoframe;
64 65
65enum omap_display_type { 66enum omap_display_type {
66 OMAP_DISPLAY_TYPE_NONE = 0, 67 OMAP_DISPLAY_TYPE_NONE = 0,
@@ -631,6 +632,10 @@ struct omapdss_hdmi_ops {
631 int (*read_edid)(struct omap_dss_device *dssdev, u8 *buf, int len); 632 int (*read_edid)(struct omap_dss_device *dssdev, u8 *buf, int len);
632 bool (*detect)(struct omap_dss_device *dssdev); 633 bool (*detect)(struct omap_dss_device *dssdev);
633 634
635 int (*set_hdmi_mode)(struct omap_dss_device *dssdev, bool hdmi_mode);
636 int (*set_infoframe)(struct omap_dss_device *dssdev,
637 const struct hdmi_avi_infoframe *avi);
638
634 /* 639 /*
635 * Note: These functions might sleep. Do not call while 640 * Note: These functions might sleep. Do not call while
636 * holding a spinlock/readlock. 641 * holding a spinlock/readlock.
@@ -850,6 +855,10 @@ struct omap_dss_driver {
850 int (*read_edid)(struct omap_dss_device *dssdev, u8 *buf, int len); 855 int (*read_edid)(struct omap_dss_device *dssdev, u8 *buf, int len);
851 bool (*detect)(struct omap_dss_device *dssdev); 856 bool (*detect)(struct omap_dss_device *dssdev);
852 857
858 int (*set_hdmi_mode)(struct omap_dss_device *dssdev, bool hdmi_mode);
859 int (*set_hdmi_infoframe)(struct omap_dss_device *dssdev,
860 const struct hdmi_avi_infoframe *avi);
861
853 /* 862 /*
854 * For display drivers that support audio. This encompasses 863 * For display drivers that support audio. This encompasses
855 * HDMI and DisplayPort at the moment. 864 * HDMI and DisplayPort at the moment.