From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 19 Feb 2017 21:23:26 -0500 Subject: [U-Boot] [PATCH 6/7] ti: wdt: omap: Use CONFIG_HW_WATCHDOG_TIMEOUT_MS to specify watchdog timeout In-Reply-To: <1487543082-24746-8-git-send-email-lukma@denx.de> References: <1487543082-24746-1-git-send-email-lukma@denx.de> <1487543082-24746-8-git-send-email-lukma@denx.de> Message-ID: <20170220022326.GC27120@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Feb 19, 2017 at 11:24:41PM +0100, Lukasz Majewski wrote: > Now it is possible to specify in the config file the time after which > watchdog will trigger. > > The flag itself has been reused from designware watchdog code > (./drivers/watchdog/designware_wdt.c). > > Signed-off-by: Lukasz Majewski > --- > drivers/watchdog/omap_wdt.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c > index 7b1f429..5a2126b 100644 > --- a/drivers/watchdog/omap_wdt.c > +++ b/drivers/watchdog/omap_wdt.c > @@ -45,7 +45,9 @@ > #include > > /* Hardware timeout in seconds */ > -#define WDT_HW_TIMEOUT 60 > +#ifndef CONFIG_HW_WATCHDOG_TIMEOUT_MS > +#define CONFIG_HW_WATCHDOG_TIMEOUT_MS 60000 > +#endif Please migrate CONFIG_HW_WATCHDOG_TIMEOUT_MS to Kconfig, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: