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,&regs->wcr);
>
> -     /* Write Service Sequence */
> -     writel (0x00005555,&regs->wsr);
> -     writel (0x0000AAAA,&regs->wsr);
> -
> -     /* Enable watchdog */
> -     writel (WCR_WDE,&regs->wcr);
> +     /* Enable watchdog and set Time-Out field to 0 (0.5s timeout) */
> +     writew (WCR_WDE,&regs->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

Reply via email to