summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorVinu Deokaran <vinud@codeaurora.org>2014-12-18 12:30:53 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:37:25 -0700
commitb19a1c8b158540b5a24f7e02760d4d8bc766d5ab (patch)
tree67506e922f7b22332b05cddbba9ec72f68dc6240 /include/uapi
parent4e095a46e7c9409c4890b773cf02b8b2ea3e6ce2 (diff)
msm: mdss: hdmi: add scrambling support for hdmi driver
Add support for enabling scrambler on hosts that support scrambling. Scrambling is a new freature added in HDMI 2.0 specification to reduce EMI interference at higher clock frequencies. Scrambling is enabled for HDMI modes that have pixel clock greater than 340MHz. For lower pixel clock frequencies, scrambling is enabled if sink supports scrambling at lower frequencies. Change-Id: I3aa224a32e768e2754a9e056a58ca90808a26ec6 Signed-off-by: Vinu Deokaran <vinud@codeaurora.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/video/msm_hdmi_modes.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/uapi/video/msm_hdmi_modes.h b/include/uapi/video/msm_hdmi_modes.h
index 0fa0820a4e85..28276ea02416 100644
--- a/include/uapi/video/msm_hdmi_modes.h
+++ b/include/uapi/video/msm_hdmi_modes.h
@@ -259,4 +259,24 @@ static inline void MSM_HDMI_MODES_SET_SUPP_TIMINGS(
}
}
+static inline int hdmi_tx_get_v_total(const struct msm_hdmi_mode_timing_info *t)
+{
+ if (t) {
+ return t->active_v + t->front_porch_v + t->pulse_width_v +
+ t->back_porch_v;
+ }
+
+ return 0;
+}
+
+static inline int hdmi_tx_get_h_total(const struct msm_hdmi_mode_timing_info *t)
+{
+ if (t) {
+ return t->active_h + t->front_porch_h + t->pulse_width_h +
+ t->back_porch_h;
+ }
+
+ return 0;
+}
+
#endif /* _UAPI_MSM_HDMI_MODES_H__ */