aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorMythri P K <mythripk@ti.com>2011-03-11 07:32:49 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-03-16 02:15:49 -0400
commitd3862610c95564a586951d5be291b9b0200d39fe (patch)
tree402764e967fa0897cbec9754c8b419856848fa9a /drivers/video
parent7ed024aa280cb38c8aa5c188d2d2c98f5daede10 (diff)
OMAP4: DSS2: HDMI: Dispc gamma enable set/reset function for TV.
Adding function to reset/set gamma table bit for TV interface, currently only support for disabled is added. Signed-off-by: Mythri P K <mythripk@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/omap2/dss/dispc.c14
-rw-r--r--drivers/video/omap2/dss/dss.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
index b8c576a0bc02..7804779c9da1 100644
--- a/drivers/video/omap2/dss/dispc.c
+++ b/drivers/video/omap2/dss/dispc.c
@@ -1008,6 +1008,20 @@ void dispc_set_burst_size(enum omap_plane plane,
1008 enable_clocks(0); 1008 enable_clocks(0);
1009} 1009}
1010 1010
1011void dispc_enable_gamma_table(bool enable)
1012{
1013 /*
1014 * This is partially implemented to support only disabling of
1015 * the gamma table.
1016 */
1017 if (enable) {
1018 DSSWARN("Gamma table enabling for TV not yet supported");
1019 return;
1020 }
1021
1022 REG_FLD_MOD(DISPC_CONFIG, enable, 9, 9);
1023}
1024
1011static void _dispc_set_vid_color_conv(enum omap_plane plane, bool enable) 1025static void _dispc_set_vid_color_conv(enum omap_plane plane, bool enable)
1012{ 1026{
1013 u32 val; 1027 u32 val;
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h
index eb05d39ef17c..ab20270d761a 100644
--- a/drivers/video/omap2/dss/dss.h
+++ b/drivers/video/omap2/dss/dss.h
@@ -370,6 +370,7 @@ void dispc_set_plane_size(enum omap_plane plane, u16 width, u16 height);
370void dispc_set_channel_out(enum omap_plane plane, 370void dispc_set_channel_out(enum omap_plane plane,
371 enum omap_channel channel_out); 371 enum omap_channel channel_out);
372 372
373void dispc_enable_gamma_table(bool enable);
373int dispc_setup_plane(enum omap_plane plane, 374int dispc_setup_plane(enum omap_plane plane,
374 u32 paddr, u16 screen_width, 375 u32 paddr, u16 screen_width,
375 u16 pos_x, u16 pos_y, 376 u16 pos_x, u16 pos_y,