From 081f20b4f5d3ce809ff7ae088af55e45f248a1b2 Mon Sep 17 00:00:00 2001 From: "haitao.liu" Date: Tue, 28 Nov 2023 19:42:45 +0800 Subject: [PATCH] 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 --- drivers/media/vin/tvin/vdin/vdin_ctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/vin/tvin/vdin/vdin_ctl.c b/drivers/media/vin/tvin/vdin/vdin_ctl.c index e429bf8b7..6995dbebe 100644 --- a/drivers/media/vin/tvin/vdin/vdin_ctl.c +++ b/drivers/media/vin/tvin/vdin/vdin_ctl.c @@ -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