vpp: enable pps last line dummy fixing for g12b
authorBrian Zhu <brian.zhu@amlogic.com>
Fri, 8 Jun 2018 11:00:43 +0000 (19:00 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 29 Jun 2018 07:32:33 +0000 (00:32 -0700)
PD#165090: vpp: enable pps last line dummy fixing for g12b

Change-Id: I276d34c1864c4d5265162c6af092b63e1a92efb9
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
drivers/amlogic/media/video_sink/video.c

index 34fb82bee022c038f2f2ca81864e5ff9677082ed..f03009c4a2b8a8951bee5a0e94d362c8d1d95def 100644 (file)
@@ -5899,6 +5899,12 @@ SET_FILTER:
                VPP_SC_HBANK_LENGTH_BIT,
                VPP_SC_BANK_LENGTH_WID);
 
+               /* fix the pps last line dummy issue */
+               if (cpu_after_eq(MESON_CPU_MAJOR_ID_G12B))
+                       VSYNC_WR_MPEG_REG_BITS(
+                               VPP_SC_MISC + cur_dev->vpp_off,
+                               1, 24, 1);
+
                /* #if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON8 */
                if ((get_cpu_type() >= MESON_CPU_MAJOR_ID_M8)
                    && !is_meson_mtvd_cpu()) {