From: Simon Kagstrom Date: Wed, 28 Oct 2009 14:05:35 +0100 Subject: [U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards In-Reply-To: <73173D32E9439E4ABB5151606C3E19E202F200E701@SC-VEXCH1.marvell.com> References: <20091028134422.40a9f0ed@marrow.netinsight.se> <73173D32E9439E4ABB5151606C3E19E202F200E701@SC-VEXCH1.marvell.com> Message-ID: <20091028140535.475e0a1d@marrow.netinsight.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 28 Oct 2009 05:57:34 -0700 Prafulla Wadaskar 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