[U-Boot] [PATCH v3] at91: Don't initialize watchdog if CONFIG_SKIP_WATCHDOG_INIT is undefined
Wolfgang Denk
wd at denx.de
Mon Aug 9 00:59:00 CEST 2010
Dear Alexander Stein,
In message <1280145784-18909-1-git-send-email-alexander.stein at systec-electronic.com> you wrote:
> On AT91 the watchdog mode register can only be written once after reset.
> If this register is written by u-boot e.g. a Linux driver can't
> reconfigure the watchdog later. If the watchdog is left untouched this
> is possible. Without touching the mode register the watchdog has a default
> setup and u-boot is still able to trigger the watchdog.
>
> Signed-off-by: Alexander Stein <alexander.stein at systec-electronic.com>
> ---
> Changes in v2:
> * Add a new specific option CONFIG_SKIP_WATCHDOG_INIT
> * Add some documentation
>
> Changes in v3:
> * Be more verbose in describing the problem in the commit message and README
>
> README | 11 +++++++++++
> arch/arm/cpu/arm926ejs/at91/lowlevel_init.S | 2 ++
> 2 files changed, 13 insertions(+), 0 deletions(-)
>
> diff --git a/README b/README
> index a9c98f2..110668d 100644
> --- a/README
> +++ b/README
> @@ -2817,6 +2817,17 @@ Low Level (hardware related) configuration options:
> some other boot loader or by a debugger which
> performs these initializations itself.
>
> +- CONFIG_SKIP_WATCHDOG_INIT
> +
> + [arm AT91 only] If this variable is defined, then the
> + watchdog will not be programmed upon u-boot start.
> + On AT91 the watchdog mode register can only be written
> + once after reset. If this register is written by u-boot
> + e.g. a Linux driver can't reconfigure the watchdog later. If
> + the watchdog is left untouched this is possible.
> + Without touching the mode register the watchdog has a default
> + setup and u-boot is still able to trigger the watchdog.
I think the Subject: is wrong. It reads:
Don't initialize watchdog if CONFIG_SKIP_WATCHDOG_INIT is
undefined
I think you mean "if CONFIG_SKIP_WATCHDOG_INIT is _DEFINED_" ?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You've no idea of what a poor opinion I have of myself, and how
little I deserve it. - W. S. Gilbert
More information about the U-Boot
mailing list