osd: the border below has a green horizontal line [1/2]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Mon, 24 Dec 2018 02:40:34 +0000 (10:40 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Fri, 28 Dec 2018 11:28:15 +0000 (19:28 +0800)
PD#SWPL-3478

Problem:
the border below has a green horizontal line

Solution:
add freescale repeat last line, supported chip after G12B

Verify:
verify on T962X2-X301

Change-Id: I5dab91774eea3949062fe3254db7a074563fe1c4
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/osd/osd_hw.c

index 1afeedf..6fc67a7 100644 (file)
@@ -4567,6 +4567,9 @@ static void osd_update_disp_freescale_enable(u32 index)
                if (osd_hw.scale_workaround)
                        data32 |= 1 << 21;
                data32 |= 1 << 24;
+               if (osd_hw.osd_meson_dev.cpu_id >=
+                       __MESON_CPU_MAJOR_ID_G12B)
+                       data32 |= 1 << 25;
        }
        VSYNCOSD_WR_MPEG_REG(osd_reg->osd_vsc_ctrl0, data32);
        data32 = 0x0;