osd: meson-axg: fix uboot logo flicker issue
authorpengcheng chen <pengcheng.chen@amlogic.com>
Mon, 16 Jul 2018 08:32:15 +0000 (16:32 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Tue, 17 Jul 2018 07:28:19 +0000 (00:28 -0700)
PD#170129: osd: meson-axg: fix uboot logo flicker issue

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

index 6da1cacab9fb333fd5dab7c079e9a4bffdedfbc2..ab6f8b44ade1690aee6315d641c3c0ce1406333b 100644 (file)
@@ -7455,6 +7455,8 @@ void osd_init_hw(u32 logo_loaded, u32 osd_probe,
        if (osd_hw.osd_meson_dev.osd_ver == OSD_SIMPLE) {
                data32 = osd_reg_read(
                        hw_osd_reg_array[OSD1].osd_fifo_ctrl_stat);
+               /* bit[9:5]: HOLD_FIFO_LINES */
+               data32 &= ~(0x1f << 5);
                data32 |= 0x18 << 5;
                osd_reg_write(
                        hw_osd_reg_array[OSD1].osd_fifo_ctrl_stat, data32);