[PATCH] mpc8540 : Fix restart
Kumar Gala
galak at kernel.crashing.org
Thu Apr 10 08:51:40 EST 2008
On Apr 9, 2008, at 5:12 PM, Philippe De Muyter wrote:
> Hi everybody,
>
> Previously, with the arch/ppc tree, mpc8540 boards could reboot.
> Now with the arch/powerpc tree, they can not anymore.
> Fix that.
>
> Signed-off-by: Philippe De Muyter <phdm at macqel.be>
>
> --- a/arch/powerpc/sysdev/fsl_soc.c 2008-03-21 14:53:41.000000000
> +0000
> +++ b/arch/powerpc/sysdev/fsl_soc.c 2008-03-26 12:08:25.000000000
> +0000
> @@ -1428,13 +1433,17 @@
>
> arch_initcall(setup_rstcr);
>
> +extern void abort(void);
> +
> void fsl_rstcr_restart(char *cmd)
> {
> local_irq_disable();
> if (rstcr)
> /* set reset control register */
> out_be32(rstcr, 0x2); /* HRESET_REQ */
> -
> + else
> + abort();
> while (1) ;
> +
> }
This was on purpose. abort() doesn't really do a restart and thus I
didn't want it to be used that way.
- k
More information about the Linuxppc-dev
mailing list