[U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

Simon Kagstrom simon.kagstrom at netinsight.net
Wed Oct 28 14:05:35 CET 2009


On Wed, 28 Oct 2009 05:57:34 -0700
Prafulla Wadaskar <prafulla at marvell.com> wrote:

> > Sure, but WATCHDOG_RESET() will be called anyway (and probably before
> > my code), so it will be enabled anyhow in that case. My point is that
> > sometimes you don't want the watchdog to get started directly, hence
> > the function to enable it.
> 
> That is also valid point,
> This will be the generic need for all architectures.
> Lets introduce WATCHDOG_INIT() as new generic interface.

Yes, something like that. What I was thinking was a 

   void watchdog_enable(unsigned int timeout_secs);

   void watchdog_disable(void);

and a command-line interface to go with these. I'm cooking up a patch
with this.

// Simon


More information about the U-Boot mailing list