aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2012-09-21 05:21:49 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-09-26 07:58:49 -0400
commit78b687fc4ffa27d48c793f9669d53a6f4351e239 (patch)
treeceda8974ead0fce8a8205006a83a610cb43136f0 /drivers
parent8eeb7019a4d1e5402b4bd5371562fe93dc1ed3dc (diff)
OMAPDSS: DISPC: Simplify function names for setting pipeline input and output sizes
The DISPC pipeline register names in the TRM for setting the buffer size and the output size are a bit misleading, for example, there are different register names for setting the buffer size for VID and GFX pipes. Things get more confusing when considering writeback pipeline. Rename the functions so that they tell whether they are configuring the input to the scalar or the output. These will be extended later to support writeback registers. Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/omap2/dss/dispc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
index 35d388b6aec1..56e23040df08 100644
--- a/drivers/video/omap2/dss/dispc.c
+++ b/drivers/video/omap2/dss/dispc.c
@@ -705,7 +705,8 @@ static void dispc_ovl_set_pos(enum omap_plane plane, int x, int y)
705 dispc_write_reg(DISPC_OVL_POSITION(plane), val); 705 dispc_write_reg(DISPC_OVL_POSITION(plane), val);
706} 706}
707 707
708static void dispc_ovl_set_pic_size(enum omap_plane plane, int width, int height) 708static void dispc_ovl_set_input_size(enum omap_plane plane, int width,
709 int height)
709{ 710{
710 u32 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); 711 u32 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0);
711 712
@@ -715,7 +716,8 @@ static void dispc_ovl_set_pic_size(enum omap_plane plane, int width, int height)
715 dispc_write_reg(DISPC_OVL_PICTURE_SIZE(plane), val); 716 dispc_write_reg(DISPC_OVL_PICTURE_SIZE(plane), val);
716} 717}
717 718
718static void dispc_ovl_set_vid_size(enum omap_plane plane, int width, int height) 719static void dispc_ovl_set_output_size(enum omap_plane plane, int width,
720 int height)
719{ 721{
720 u32 val; 722 u32 val;
721 723
@@ -2387,13 +2389,14 @@ int dispc_ovl_setup(enum omap_plane plane, const struct omap_overlay_info *oi,
2387 2389
2388 dispc_ovl_set_pos(plane, oi->pos_x, pos_y); 2390 dispc_ovl_set_pos(plane, oi->pos_x, pos_y);
2389 2391
2390 dispc_ovl_set_pic_size(plane, in_width, in_height); 2392 dispc_ovl_set_input_size(plane, in_width, in_height);
2391 2393
2392 if (ovl->caps & OMAP_DSS_OVL_CAP_SCALE) { 2394 if (ovl->caps & OMAP_DSS_OVL_CAP_SCALE) {
2393 dispc_ovl_set_scaling(plane, in_width, in_height, out_width, 2395 dispc_ovl_set_scaling(plane, in_width, in_height, out_width,
2394 out_height, ilace, five_taps, fieldmode, 2396 out_height, ilace, five_taps, fieldmode,
2395 oi->color_mode, oi->rotation); 2397 oi->color_mode, oi->rotation);
2396 dispc_ovl_set_vid_size(plane, out_width, out_height); 2398
2399 dispc_ovl_set_output_size(plane, out_width, out_height);
2397 dispc_ovl_set_vid_color_conv(plane, cconv); 2400 dispc_ovl_set_vid_color_conv(plane, cconv);
2398 } 2401 }
2399 2402