From 8b57b216d624b1414a19670d96df25db0fb154f3 Mon Sep 17 00:00:00 2001 From: Bencheng Jing Date: Thu, 18 Apr 2019 21:16:56 +0800 Subject: [PATCH] amvecm: set tm2 vpp gain offset to 13bit [1/1] PD#SWPL-7778 Problem: set tm2 vpp gain offset to 13bit Solution: set tm2 vpp gain offset to 13bit Verify: T962E2 Change-Id: I54ae9566050baeb73b7b1c94f87a3c43c76a2c62 Signed-off-by: Bencheng Jing --- drivers/amlogic/media/enhancement/amvecm/amve.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/enhancement/amvecm/amve.c b/drivers/amlogic/media/enhancement/amvecm/amve.c index 53b6dd9..03742d3 100644 --- a/drivers/amlogic/media/enhancement/amvecm/amve.c +++ b/drivers/amlogic/media/enhancement/amvecm/amve.c @@ -576,7 +576,8 @@ void vpp_set_rgb_ogo(struct tcon_rgb_ogo_s *p) m[22], 5, 3); } else { /*for txlx and txhd, pre_offset and post_offset become 13 bit*/ - if (is_meson_txlx_cpu() || is_meson_txhd_cpu()) { + if (is_meson_txlx_cpu() || is_meson_txhd_cpu() || + is_meson_tm2_cpu()) { WRITE_VPP_REG(VPP_GAINOFF_CTRL0, ((p->en << 31) & 0x80000000) | ((p->r_gain << 16) & 0x07ff0000) | -- 2.7.4