From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mythri P K Subject: [PATCH v3 3/9] OMAP4 : DSS2 : HDMI: HDMI dispc gamma table disable. Date: Fri, 4 Mar 2011 13:18:21 +0530 Message-ID: <1299224907-11354-4-git-send-email-mythripk@ti.com> References: <1299224907-11354-1-git-send-email-mythripk@ti.com> Return-path: Received: from devils.ext.ti.com ([198.47.26.153]:42631 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758483Ab1CDHsn (ORCPT ); Fri, 4 Mar 2011 02:48:43 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id p247meva018100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 4 Mar 2011 01:48:42 -0600 In-Reply-To: <1299224907-11354-1-git-send-email-mythripk@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: linux-omap@vger.kernel.org, tomi.valkeinen@ti.com Cc: Mythri P K Adding changes to set gamma table bit for TV interface to make sure it is disabled . Signed-off-by: Mythri P K --- drivers/video/omap2/dss/dispc.c | 10 ++++++++++ drivers/video/omap2/dss/dss.h | 1 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index 69e1e9d..03f8cb6 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c @@ -1224,6 +1224,16 @@ void dispc_enable_zorder(enum omap_plane plane, bool enable) dispc_write_reg(dispc_reg_att[plane], val); } +void dispc_enable_gamma_table(bool enable) +{ + /* This is partially implemented to support only + * disable the gamma table + */ + BUG_ON(enable); + + REG_FLD_MOD(DISPC_CONFIG, enable, 9, 9); +} + static void _dispc_set_vid_color_conv(enum omap_plane plane, bool enable) { u32 val; diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h index c780926..004c782 100644 --- a/drivers/video/omap2/dss/dss.h +++ b/drivers/video/omap2/dss/dss.h @@ -358,6 +358,7 @@ void dispc_set_plane_pos(enum omap_plane plane, u16 x, u16 y); void dispc_set_plane_size(enum omap_plane plane, u16 width, u16 height); void dispc_set_channel_out(enum omap_plane plane, enum omap_channel channel_out); +void dispc_enable_gamma_table(bool enable); int dispc_setup_plane(enum omap_plane plane, u32 paddr, u16 screen_width, u16 pos_x, u16 pos_y, -- 1.5.6.3