[PATCH 1/2] rockchip: rk3568: make the WDT trigger a first global reset
Andreas Zdziarstek
andreas.zdziarstek at gmail.com
Tue Jun 23 12:33:18 CEST 2026
Hi Quentin,
Am Di., 23. Juni 2026 um 11:25 Uhr schrieb Quentin Schulz
<quentin.schulz at cherry.de>:
>
> Hi Andreas,
>
> On 6/20/26 12:08 AM, Andreas Zdziarstek wrote:
> You should be able to use:
>
> #define CRU_BASE 0xfdd20000
>
> int arch_cpu_init(void)
> {
> static struct rk3568_cru * const cru = (void *)CRU_BASE;
> [...]
> setbits_le32(&cru->glb_rst_con, WDT_GLB_SRST_CTRL);
> }
>
> and it would match how we did it for PX30.
Ok, makes sense. ty
>
> I think we should probably enable the second global reset for TSADC as
> well, like we did on PX30. While we don't have a driver for it in
> U-Boot, we do in the Linux kernel and we don't configure the global
> reset level there I think? So a thermal shutdown would properly also
> reset the whole SoC (or as much as allowed by Rockchip :) ).
>
> What do you think?
I'll have a look at the Kernel. Could be a good thing to add in general. I am
a little unsure though if it belongs more into the Kernel if U-boot does not
use it?
For now, I'll make a v2 series using the struct schema. I will also add a
commit for the TSADC reset. Then we can decide if we keep it in or defer.
Cheers,
Andreas
More information about the U-Boot
mailing list