amvecm: set tm2 vpp gain offset to 13bit [1/1]
authorBencheng Jing <bencheng.jing@amlogic.com>
Thu, 18 Apr 2019 13:16:56 +0000 (21:16 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 29 Apr 2019 10:49:38 +0000 (03:49 -0700)
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 <bencheng.jing@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/amve.c

index 53b6dd9..03742d3 100644 (file)
@@ -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) |