di: aptimise di flow, add some protection [1/1]
authorYong Qin <yong.qin@amlogic.com>
Tue, 8 Jan 2019 09:02:34 +0000 (17:02 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 4 Mar 2019 06:30:57 +0000 (22:30 -0800)
commite1b1c72f01cd969c4878d420bb3bb9b4db168a18
tree66e63daeb20b4492371f870c36fa3e5febeb2c28
parentc9929130e3b8b3c8c0c2c64520fe28184e213372
di: aptimise di flow, add some protection [1/1]

PD#SWPL-3976

Problem:
To prevent “stall when access DDR through memory interface”

Solution:
1.aptimise NRWR register access flow
2.add arb on/off and status check
3.add reset protect
4.add nr_en disable before arb status check
5.add nr_write_done sel
6.modify VPU_WRARB_MODE_L2C1 from vlsi feijun's suggest

Verify:
tl1, txlx

Change-Id: Ifb0f4f0502d957ffb2b07805575c27f4166d5717
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
drivers/amlogic/media/common/vpu/vpu_power_init.c
drivers/amlogic/media/deinterlace/deinterlace.c
drivers/amlogic/media/deinterlace/deinterlace_hw.c
drivers/amlogic/media/deinterlace/deinterlace_hw.h
drivers/amlogic/media/deinterlace/register.h
include/linux/amlogic/media/registers/regs/vpp_regs.h