From: Tom Rini Date: Fri, 24 Apr 2020 13:08:40 -0400 Subject: [PATCH] watchdog: mpc8xx_wdt: Allow selection of watchdog mode through environment In-Reply-To: References: Message-ID: <20200424170840.GZ4555@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 Wed, Feb 19, 2020 at 04:50:15PM +0000, Christophe Leroy wrote: > From: Charles Frey > > The mpc8xx watchdog can work either in 'reset mode' or 'NMI mode'. > The selection can be done at startup only. > It is desirable to select the mode without rebuilding U-boot. > It is also desirable to disable the watchdog without rebuilding. > > At watchdog startup, check environment variable 'watchdog_mode'. > If it is 'off', the watchdog is not started. If it is 'nmi', > the watchdog is started in NMI mode. Otherwise, it is started > in reset mode which is the default mode. > > Signed-off-by: Charles Frey > Signed-off-by: Christophe Leroy Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: