Merge patch series "Print Reset Reason for K3 based devices"
authorTom Rini <trini@konsulko.com>
Thu, 29 May 2025 14:32:52 +0000 (08:32 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 29 May 2025 14:32:52 +0000 (08:32 -0600)
commit4c0e1d8fad5a63aa56bdb24900267cb03fdc9214
tree2cd8e25bc8949e3518b66a1adbd4817d42b56672
parent62905f4a929b476761caff1078c88e1d3216b175
parentbe93c0892d0f0bf83ac669678e01ae27f798738e
Merge patch series "Print Reset Reason for K3 based devices"

Wadim Egorov <w.egorov@phytec.de> says:

Although AM62x, AM62Ax, AM64x, and AM62Px share the same register for
reset reason, not all TRMs document this consistently. To avoid relying
on undocumented behavior, introduce SoC-specific implementations for
now. If TI confirms all SoCs share the same register, this can be moved to
common.c for reuse.

It will be mostly copy&paste for the mentioned devices.

Also, I am not sure how this Register operates exactly. I noticed that
two bits can be set at once, so I started to check for set bits instead
of having a switch/case logic.

Link: https://lore.kernel.org/r/20250515111554.2916254-1-w.egorov@phytec.de