[U-Boot-Users] [PATCH] Feed the watchdog in u-boot for 8610 board.

Jon Loeliger jdl at freescale.com
Mon Jul 7 18:44:38 CEST 2008


On Tue, 2008-05-13 at 11:50 +0800, Jason Jin wrote:
> The watchdog on 8610 board is enabled by setting sw[6]
> to on. Once enabled, the watchdog can not be disabled
> by software. So feed the dog in u-boot is necessary for
> normal operation.
> 
> Signed-off-by: Jason Jin <Jason.jin at freescale.com>
> ---

Applied to -mpc86xx repo with some white-space cleanup.


> diff --git a/cpu/mpc86xx/cpu.c b/cpu/mpc86xx/cpu.c
> index bf4e651..6dd0655 100644
> --- a/cpu/mpc86xx/cpu.c
> +++ b/cpu/mpc86xx/cpu.c
> @@ -213,6 +213,20 @@ get_tbclk(void)
>  void
>  watchdog_reset(void)
>  {

> +	if(tmp & 0x4000) {
> +		wdt->swsrr = 0x556c;
> +		wdt->swsrr = 0xaa39;


Also, if we had a patch that documented those
magic numbers, that would be good.

Thanks,
jdl






More information about the U-Boot mailing list