summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/hdmi.h
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2013-09-17 11:43:15 +0530
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-10-09 12:42:37 +0300
commit08d83e4e172176f8a66697ffb26eaa5ac5c2ef03 (patch)
tree700c97cdcc56188e8aa1c0aca2b7663f2100ba3d /drivers/video/omap2/dss/hdmi.h
parentc8a0d959b776f6799b995941ee0c2f8c67110fe8 (diff)
downloadblackbird-obmc-linux-08d83e4e172176f8a66697ffb26eaa5ac5c2ef03.tar.gz
blackbird-obmc-linux-08d83e4e172176f8a66697ffb26eaa5ac5c2ef03.zip
omapdss: HDMI: move common functions to a separate file
The OMAP4 HDMI encoder driver(hdmi4.c) contains timings tables, and helper functions which can be used as is by the OMAP5/DRA7x encoder driver. Move these to hdmi_common.c so that it's not replicated in the future. Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/hdmi.h')
-rw-r--r--drivers/video/omap2/dss/hdmi.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/hdmi.h b/drivers/video/omap2/dss/hdmi.h
index b92d981063dc..b0493768a5d7 100644
--- a/drivers/video/omap2/dss/hdmi.h
+++ b/drivers/video/omap2/dss/hdmi.h
@@ -423,13 +423,22 @@ void hdmi_phy_disable(struct hdmi_phy_data *phy, struct hdmi_wp_data *wp);
void hdmi_phy_dump(struct hdmi_phy_data *phy, struct seq_file *s);
int hdmi_phy_init(struct platform_device *pdev, struct hdmi_phy_data *phy);
+/* HDMI common funcs */
+const struct hdmi_config *hdmi_default_timing(void);
+const struct hdmi_config *hdmi_get_timings(int mode, int code);
+struct hdmi_cm hdmi_get_code(struct omap_video_timings *timing);
+
#if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO)
-int hdmi_compute_acr(u32 sample_freq, u32 *n, u32 *cts);
+int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts);
int hdmi_wp_audio_enable(struct hdmi_wp_data *wp, bool enable);
int hdmi_wp_audio_core_req_enable(struct hdmi_wp_data *wp, bool enable);
void hdmi_wp_audio_config_format(struct hdmi_wp_data *wp,
struct hdmi_audio_format *aud_fmt);
void hdmi_wp_audio_config_dma(struct hdmi_wp_data *wp,
struct hdmi_audio_dma *aud_dma);
+static inline bool hdmi_mode_has_audio(int mode)
+{
+ return mode == HDMI_HDMI ? true : false;
+}
#endif
#endif
OpenPOWER on IntegriCloud