di: move enable pre mif before frame reset avoid timeout
authorBencheng Jing <bencheng.jing@amlogic.com>
Thu, 28 Dec 2017 09:30:07 +0000 (17:30 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 8 Jan 2018 10:09:40 +0000 (03:09 -0700)
PD#154836: di:  move enable pre mif before frame reset avoid timeout

1) enable pre mif before&after frame reset for
   mc mif will be clear by pre frame reset

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

index 4bd5482..5afa278 100644 (file)
@@ -2736,6 +2736,8 @@ static void pre_de_process(void)
                        vdin_ops->tvin_vdin_func(0, &vdin_arg);
        }
 #endif
+       /* enable pre mif before reset avoid timeout */
+       enable_di_pre_mif(true, mcpre_en);
        /* frame + soft reset for the pre modules. */
        RDMA_WR(DI_PRE_CTRL, Rd(DI_PRE_CTRL) | 3 << 30);
        RDMA_WR(DI_PRE_CTRL,
@@ -2745,7 +2747,7 @@ static void pre_de_process(void)
                RDMA_WR_BITS(DI_PRE_CTRL, 1, 13, 1);
        #endif
 
-       /* enable pre mif*/
+       /* enable mc pre mif*/
        enable_di_pre_mif(true, mcpre_en);
        di_pre_stru.irq_time = sched_clock()/NSEC_PER_MSEC;
 #ifdef CONFIG_AMLOGIC_MEDIA_RDMA