di: disable cue for g12a [1/2]
authorBencheng Jing <bencheng.jing@amlogic.com>
Wed, 20 Mar 2019 08:44:37 +0000 (16:44 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 22 Mar 2019 07:54:56 +0000 (00:54 -0700)
PD#SWPL-6142

Problem:
disable cue for g12a

Solution:
disable cue for g12a

Verify:
U212

Change-Id: I276fa0b8605110b709feaceb6d23d9b566c16a44
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
drivers/amlogic/media/deinterlace/nr_drv.c

index 73c91cf..5d41ea7 100644 (file)
@@ -727,7 +727,12 @@ static void cue_process_irq(void)
 }
 void cue_int(void)
 {
-       if (cpu_after_eq(MESON_CPU_MAJOR_ID_G12A)) {
+       /*confirm with vlsi-liuyanling, G12a cue must be disabled*/
+       if (is_meson_g12a_cpu()) {
+               cue_en = false;
+               cue_glb_mot_check_en = false;
+       }
+       if (cpu_after_eq(MESON_CPU_MAJOR_ID_G12B)) {
                if (cue_en)
                        Wr_reg_bits(NR2_CUE_MODE, 3, 10, 2);
        }