Hello. On 12-10-2010 15:49, Matthias Weisser wrote:
> This patch fixes the reset command on imx25 > Signed-off-by: Matthias Weisser<weiss...@arcor.de> [...] > diff --git a/arch/arm/cpu/arm926ejs/mx25/reset.c > b/arch/arm/cpu/arm926ejs/mx25/reset.c > index 1e33150..a5fd170 100644 > --- a/arch/arm/cpu/arm926ejs/mx25/reset.c > +++ b/arch/arm/cpu/arm926ejs/mx25/reset.c > @@ -42,15 +42,9 @@ > void reset_cpu (ulong ignored) > { > struct wdog_regs *regs = (struct wdog_regs *)IMX_WDT_BASE; > - /* Disable watchdog and set Time-Out field to 0 */ > - writel (0x00000000,®s->wcr); > > - /* Write Service Sequence */ > - writel (0x00005555,®s->wsr); > - writel (0x0000AAAA,®s->wsr); > - > - /* Enable watchdog */ > - writel (WCR_WDE,®s->wcr); > + /* Enable watchdog and set Time-Out field to 0 (0.5s timeout) */ > + writew (WCR_WDE,®s->wcr); This wouldn't pass checkpatch.pl -- spaces not allowed before (... WBR, Sergei _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot