From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Sat, 16 Oct 2010 21:39:21 +0400 Subject: [U-Boot] [PATCH] imx25: Fix reset In-Reply-To: <1286884156-30182-1-git-send-email-weisserm@arcor.de> References: <1286884156-30182-1-git-send-email-weisserm@arcor.de> Message-ID: <4CB9E349.2060105@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello. On 12-10-2010 15:49, Matthias Weisser wrote: > This patch fixes the reset command on imx25 > Signed-off-by: Matthias Weisser [...] > 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