From 6ac248ced7fc410ff2864f6b277caf1f023a900c Mon Sep 17 00:00:00 2001 From: Mark Gutman Date: Thu, 3 Sep 2009 11:47:32 +0300 Subject: ENGR00115576 ipuv3: support for 720P upsizing A new feature is added to support to upsizing by horizontal stripes via IC PP channels double using. Signed-off-by: Mark Gutman --- drivers/mxc/ipu3/ipu_ic.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'drivers/mxc/ipu3/ipu_ic.c') diff --git a/drivers/mxc/ipu3/ipu_ic.c b/drivers/mxc/ipu3/ipu_ic.c index 45894265a630..1a4bda3f071a 100644 --- a/drivers/mxc/ipu3/ipu_ic.c +++ b/drivers/mxc/ipu3/ipu_ic.c @@ -416,10 +416,14 @@ void _ipu_ic_init_pp(ipu_channel_params_t *params) reg = (downsizeCoeff << 30) | (resizeCoeff << 16); /* Setup horizontal resizing */ - _calc_resize_coeffs(params->mem_pp_mem.in_width, - params->mem_pp_mem.out_width, - &resizeCoeff, &downsizeCoeff); - reg |= (downsizeCoeff << 14) | resizeCoeff; + /* Upadeted for IC split case */ + if (!(params->mem_pp_mem.out_resize_ratio)) { + _calc_resize_coeffs(params->mem_pp_mem.in_width, + params->mem_pp_mem.out_width, + &resizeCoeff, &downsizeCoeff); + reg |= (downsizeCoeff << 14) | resizeCoeff; + } else + reg |= params->mem_pp_mem.out_resize_ratio; __raw_writel(reg, IC_PP_RSC); -- cgit v1.2.3