Making cpu reset cause available from U-Boot to Linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Making cpu reset cause available from U-Boot to Linux

1,028 Views
colinhelliwell
Contributor III

I'd like the system's reset cause (por, watchdog etc) to be available to Linux - it's shown in the u-boot debug e.g.

"Reset cause: POR"

I've only found a few references to this in searching, and it seems that u-boot clears the register after reading?

Has anyone done any modifications to preserve this, and then been able to read it from the OS?

Thanks

Labels (4)
0 Kudos
1 Reply

478 Views
igorpadykov
NXP Employee
NXP Employee

Hi colinhelliwell

seems you are right, in general one can save that reset info in some
of SRC_GPR registers and use in linux.

Best regards
igor

0 Kudos