summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Ying <b17645@freescale.com>2010-11-03 17:50:00 +0800
committerLily Zhang <r58066@freescale.com>2010-11-16 16:08:24 +0800
commita54c4d2bfb17a628a2b0ee9a8183d7664359fe34 (patch)
treef42207e2f1eefe965f259ca726c5f24a5da7b65f
parent9af20dcb48ba7a45001608e221c8395238ef10bc (diff)
ENGR00133345-1 IPUv3 VDI:Support bottom field first setting
This patch supports bottom field first setting. Signed-off-by: Liu Ying <b17645@freescale.com> (cherry picked from commit c36dbf686a6e0dd7e7e746ad986105255de0b7c0)
-rw-r--r--drivers/mxc/ipu3/ipu_ic.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mxc/ipu3/ipu_ic.c b/drivers/mxc/ipu3/ipu_ic.c
index 8bb28c929620..7f1dfe92332a 100644
--- a/drivers/mxc/ipu3/ipu_ic.c
+++ b/drivers/mxc/ipu3/ipu_ic.c
@@ -185,7 +185,10 @@ void _ipu_vdi_init(ipu_channel_t channel, ipu_channel_params_t *params)
}
__raw_writel(reg, VDI_C);
- _ipu_vdi_set_top_field_man(false);
+ if (params->mem_prp_vf_mem.field_fmt == V4L2_FIELD_INTERLACED_TB)
+ _ipu_vdi_set_top_field_man(false);
+ else if (params->mem_prp_vf_mem.field_fmt == V4L2_FIELD_INTERLACED_BT)
+ _ipu_vdi_set_top_field_man(true);
_ipu_vdi_set_motion(params->mem_prp_vf_mem.motion_sel);