Making cpu reset cause available from U-Boot to Linux

cancel
Showing results for 
Search instead for 
Did you mean: 

Making cpu reset cause available from U-Boot to Linux

656 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

106 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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