Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b0d5514 authored by Kumar Gala's avatar Kumar Gala
Browse files

powerpc: Fix mpc83xx restart bug



We need to write the correct value to the RCR to get a HW reset.

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 774fee58
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ void mpc83xx_restart(char *cmd)
	out_be32(reg + (RST_PROT_REG >> 2), 0x52535445);

	/* set software hard reset */
	out_be32(reg + (RST_CTRL_REG >> 2), 0x52535445);
	out_be32(reg + (RST_CTRL_REG >> 2), 0x2);
	for (;;) ;
}