osd: set gxm afbc hardware reset correctly [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Sat, 12 Oct 2019 09:25:45 +0000 (17:25 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 14 Oct 2019 08:17:15 +0000 (01:17 -0700)
PD#SWPL-13524

Problem:
gxm afbc hardware reset is not set.

Solution:
set gxm afbc hardware reset correctly

Verify:
Verified on S912

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

index 05f7278..affbc2f 100644 (file)
@@ -2080,7 +2080,8 @@ void osd_hw_reset(void)
                && !(backup_mask & HW_RESET_OSD1_REGS))
                reset_bit &= ~HW_RESET_OSD1_REGS;
 
-       if ((osd_hw.osd_meson_dev.afbc_type == MESON_AFBC)
+       if (((get_cpu_type() == MESON_CPU_MAJOR_ID_GXTVBB) &&
+            (osd_hw.osd_meson_dev.afbc_type == MESON_AFBC))
                && (reset_bit & HW_RESET_AFBCD_REGS)
                && !(backup_mask & HW_RESET_AFBCD_REGS))
                reset_bit &= ~HW_RESET_AFBCD_REGS;