aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/hdmi_ti_4xxx_ip.c
diff options
context:
space:
mode:
authorSujeet Baranwal <s-baranwal@ti.com>2012-03-22 19:13:32 +0530
committerZiyann <jaraidaniel@gmail.com>2014-10-01 12:57:31 +0200
commite07ad9000244653cf1753838aad73fed4ec0d39d (patch)
tree267020729e9e218e973aec81eb456abdb7814200 /drivers/video/hdmi_ti_4xxx_ip.c
parente3ed6dbfcfa9d59fe640593383d6a73575cf24ac (diff)
downloadkernel_samsung_tuna-e07ad9000244653cf1753838aad73fed4ec0d39d.zip
kernel_samsung_tuna-e07ad9000244653cf1753838aad73fed4ec0d39d.tar.gz
kernel_samsung_tuna-e07ad9000244653cf1753838aad73fed4ec0d39d.tar.bz2
OMAP4: HDMI: limited & full range support
Limited & full range support is added.Full range is selected for DVI mode and for VGA reolsution in HDMI mode. Change-Id: I618375be996b3e36a4f960e1a3cefaf0c59e9223 Signed-off-by: Preetam MN <preetammn@ti.com> Signed-off-by: Sujeet Baranwal <s-baranwal@ti.com>
Diffstat (limited to 'drivers/video/hdmi_ti_4xxx_ip.c')
-rw-r--r--drivers/video/hdmi_ti_4xxx_ip.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/video/hdmi_ti_4xxx_ip.c b/drivers/video/hdmi_ti_4xxx_ip.c
index 66e006e..d19eb1c 100644
--- a/drivers/video/hdmi_ti_4xxx_ip.c
+++ b/drivers/video/hdmi_ti_4xxx_ip.c
@@ -1001,7 +1001,22 @@ void hdmi_ti_4xxx_basic_configure(struct hdmi_ip_data *ip_data,
avi_cfg.db2_active_fmt_ar = HDMI_INFOFRAME_AVI_DB2R_SAME;
avi_cfg.db3_itc = HDMI_INFOFRAME_AVI_DB3ITC_NO;
avi_cfg.db3_ec = HDMI_INFOFRAME_AVI_DB3EC_XVYUV601;
- avi_cfg.db3_q_range = HDMI_INFOFRAME_AVI_DB3Q_DEFAULT;
+
+ if (cfg->cm.mode == HDMI_DVI ||
+ (cfg->cm.code == 1 && cfg->cm.mode == HDMI_HDMI)) {
+ /* setting for FULL RANGE MODE */
+ pr_debug("infoframe avi full range\n");
+ REG_FLD_MOD(hdmi_core_sys_base(ip_data),
+ HDMI_CORE_SYS_VID_MODE, 1, 4, 4);
+ avi_cfg.db3_q_range = HDMI_INFOFRAME_AVI_DB3Q_FR;
+ } else {
+ /* setting for LIMITED RANGE MODE */
+ pr_debug("infoframe avi limited range\n");
+ REG_FLD_MOD(hdmi_core_sys_base(ip_data),
+ HDMI_CORE_SYS_VID_ACEN, 1, 1, 1);
+ avi_cfg.db3_q_range = HDMI_INFOFRAME_AVI_DB3Q_LR;
+ }
+
avi_cfg.db3_nup_scaling = HDMI_INFOFRAME_AVI_DB3SC_NO;
avi_cfg.db4_videocode = cfg->cm.code;
avi_cfg.db5_pixel_repeat = HDMI_INFOFRAME_AVI_DB5PR_NO;