From: Andreas Zdziarstek <andreas.zdziarstek@gmail.com>
To: u-boot@lists.denx.de
Cc: trini@konsulko.com, sjg@chromium.org, philipp.tomsich@vrull.eu,
kever.yang@rock-chips.com, jonas@kwiboo.se,
quentin.schulz@cherry.de,
Andreas Zdziarstek <andreas.zdziarstek@gmail.com>
Subject: [PATCH v3 2/3] rockchip: rk3568: make the TSADC trigger a first global reset
Date: Mon, 29 Jun 2026 20:20:11 +0200 [thread overview]
Message-ID: <20260629182012.1508336-3-andreas.zdziarstek@gmail.com> (raw)
In-Reply-To: <20260629182012.1508336-1-andreas.zdziarstek@gmail.com>
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@gmail.com>
---
arch/arm/mach-rockchip/rk3568/rk3568.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-rockchip/rk3568/rk3568.c b/arch/arm/mach-rockchip/rk3568/rk3568.c
index 8bed529a5c1..5e6f79450db 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 {
@@ -152,8 +153,9 @@ int arch_cpu_init(void)
writel((PMU_PD_VO_DWN_ENA << 16),
PMU_BASE_ADDR + PMU_PWR_GATE_SFTCON);
- /* Make WDT trigger a first global reset */
- setbits_le32(&cru->glb_rst_con, WDT_GLB_SRST_CTRL);
+ /* Make WDT and TSADC trigger a first global reset */
+ setbits_le32(&cru->glb_rst_con,
+ WDT_GLB_SRST_CTRL | TSADC_GLB_SRST_CTRL);
#endif
return 0;
}
--
2.53.0
next prev parent reply other threads:[~2026-06-29 18:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-29 18:20 [PATCH v3 0/3] rockchip: odroid-m1s/rk3566 watchdog support Andreas Zdziarstek
2026-06-29 18:20 ` [PATCH v3 1/3] rockchip: rk3568: make the WDT trigger a first global reset Andreas Zdziarstek
2026-06-29 18:20 ` Andreas Zdziarstek [this message]
2026-06-29 18:20 ` [PATCH v3 3/3] rockchip: odroid-m1s: enable watchdog support Andreas Zdziarstek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260629182012.1508336-3-andreas.zdziarstek@gmail.com \
--to=andreas.zdziarstek@gmail.com \
--cc=jonas@kwiboo.se \
--cc=kever.yang@rock-chips.com \
--cc=philipp.tomsich@vrull.eu \
--cc=quentin.schulz@cherry.de \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.