From: Jon Loeliger Date: Mon, 07 Jul 2008 11:44:38 -0500 Subject: [U-Boot-Users] [PATCH] Feed the watchdog in u-boot for 8610 board. In-Reply-To: <1210650636-31721-1-git-send-email-Jason.jin@freescale.com> References: <1210650636-31721-1-git-send-email-Jason.jin@freescale.com> Message-ID: <1215449078.30495.11.camel@ld0161-tx32> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- 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