On 8/30/21 7:52 PM, Adam Ford wrote:
On Sun, Aug 29, 2021 at 12:53 PM Marek Vasut <ma...@denx.de> wrote:
On 8/27/21 10:57 PM, Adam Ford wrote:
Various RZ/G2[MNH] boards have copies of cpu_reset which
creates duplicate code, so move this to a common file shared
among all users of the RZG2 and declare it weak so it can be
overwritten if necessary.
RCar3 has the same reset code too, so this could be unified further.
However, I wonder, can't you simply call the PSCI reset ? There is a
PSCI reset driver in drivers/reset/ too I think.
Thanks for the suggestion. I removed the custom cpu_reset code from
the board file, and enabled sysreset and the psci, and that appeared
to still reset when needed.
I'll send a different patch shortly.
Thanks!