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)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 16 Oct 2019 02:59:06 +0000 (19:59 -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 05f72780e9adaea8f34e9ffdfc476dec5856bb9c..affbc2f48d3c8f85b840efbd173d6f80167ccb63 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;