Reset cause register for Allwinner H3/R16 SOC's

Andre Przywara andre.przywara at arm.com
Mon Jun 14 00:14:11 CEST 2021


On Sat, 12 Jun 2021 10:17:08 +0530
Suniel Mahesh <sunil at amarulasolutions.com> wrote:

> Hi All,
> 
> I am working on an Allwinner R16 and H3 based targets and I am implementing
> system update.
> 
> Is there any way(or a register) on Allwinner R16/H3 which can tell
> what is the cause
> of the reset(whether the reset is triggered by a watchdog or thermal
> or reset or a POR).

I don't think anybody found such an explicit gadget in Allwinner
chips before.
Besides, what would be the difference between watchdog, thermal and
reset? AFAIK those are all the same watchdog triggered reset, in the
last two cases deliberately triggered.
If you want to convey information across a reset, you can use the RTC
data registers: they survive a reset. So you can explicitly write some
reset cause indicator value into one of the registers, then read that
back after the reset.
For power-on-reset there might be some heuristics to tell it apart from
a mere reset (temperature, PMIC state, DRAM content?), but in
general the RTC register method should also work here.
So if you are happy to hack some board specifics into your firmware, it
should be doable, but there does not seem to be a generic mechanism
implemented into the SoC.

Cheers,
Andre






More information about the U-Boot mailing list