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 <[EMAIL PROTECTED]>
> ---

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



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to