vdin: no sw reset on chips before t5 [1/1]

PD#SWPL-145959

Problem:
software reset on g12b casue system crash

Solution:
sw reset on chips after or equal to t5

Verify:
t5m

Change-Id: Ia186e87d6c87a6396488274d8ddf683aefebe86f
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
This commit is contained in:
haitao.liu
2023-11-28 19:42:45 +08:00
committed by Luan Yuan
parent 28e1448c69
commit 081f20b4f5
+3
View File
@@ -7255,6 +7255,9 @@ void vdin_sw_reset(struct vdin_dev_s *devp)
else if (is_meson_t3x_cpu())
vdin_sw_reset_t3x(devp);
#endif
if (!cpu_after_eq(MESON_CPU_MAJOR_ID_T5))
return;
if (devp->index) {
wr_bits(0, VDIN_TOP_MISC, 1, 27, 1); //vdin1
wr_bits(0, VDIN_TOP_MISC, 0, 27, 1); //vdin1