[PATCH v2 2/3] rockchip: rk3568: make the TSADC trigger a first global reset

Andreas Zdziarstek andreas.zdziarstek at gmail.com
Mon Jun 29 19:05:16 CEST 2026


Same rationale as the watchdog: the default second global reset leaves
the SoC hung. Set the TSADC to the first global reset as well, so a
thermal shutdown reliably resets the whole SoC.

Signed-off-by: Andreas Zdziarstek <andreas.zdziarstek at gmail.com>
---
 arch/arm/mach-rockchip/rk3568/rk3568.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-rockchip/rk3568/rk3568.c b/arch/arm/mach-rockchip/rk3568/rk3568.c
index 87bd443e9c4..50b61b7cd26 100644
--- a/arch/arm/mach-rockchip/rk3568/rk3568.c
+++ b/arch/arm/mach-rockchip/rk3568/rk3568.c
@@ -40,6 +40,7 @@
 
 #define CRU_BASE		0xfdd20000
 #define WDT_GLB_SRST_CTRL	BIT(1)
+#define TSADC_GLB_SRST_CTRL	BIT(0)
 
 /* PMU_GRF_GPIO0D_IOMUX_L */
 enum {
@@ -156,6 +157,9 @@ int arch_cpu_init(void)
 	/* Make WDT trigger a first global reset */
 	setbits_le32(&cru->glb_rst_con, WDT_GLB_SRST_CTRL);
 
+	/* Make TSADC trigger a first global reset */
+	setbits_le32(&cru->glb_rst_con, TSADC_GLB_SRST_CTRL);
+
 	return 0;
 }
 
-- 
2.53.0



More information about the U-Boot mailing list