]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
OMAP4: DSS2: HDMI: Dispc gamma enable set/reset function for TV.
authorMythri P K <mythripk@ti.com>
Fri, 11 Mar 2011 12:32:49 +0000 (18:02 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 16 Mar 2011 06:15:49 +0000 (11:45 +0530)
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>
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dss.h

index b8c576a0bc02c40a64a4b6cd3fcc249e07e050ba..7804779c9da150bb2ddf431cc9ac1134ef901e89 100644 (file)
@@ -1008,6 +1008,20 @@ void dispc_set_burst_size(enum omap_plane plane,
        enable_clocks(0);
 }
 
+void dispc_enable_gamma_table(bool enable)
+{
+       /*
+        * This is partially implemented to support only disabling of
+        * the gamma table.
+        */
+       if (enable) {
+               DSSWARN("Gamma table enabling for TV not yet supported");
+               return;
+       }
+
+       REG_FLD_MOD(DISPC_CONFIG, enable, 9, 9);
+}
+
 static void _dispc_set_vid_color_conv(enum omap_plane plane, bool enable)
 {
        u32 val;
index eb05d39ef17cb45c8d3587ffaad7ba2ec8a07e42..ab20270d761abe8b474899dc0cf446a29c33d4ec 100644 (file)
@@ -370,6 +370,7 @@ 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,