From: Alexander Stein Date: Mon, 9 Aug 2010 13:42:40 +0200 Subject: [U-Boot] [PATCH v4] at91: Don't initialize watchdog if CONFIG_SKIP_WATCHDOG_INIT is defined In-Reply-To: References: <20100808225900.461C71536EF@gemini.denx.de> <1281336006-14760-1-git-send-email-alexander.stein@systec-electronic.com> Message-ID: <201008091342.40782.alexander.stein@systec-electronic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Mike, Am Montag, 9. August 2010, 09:13:45 schrieb Mike Frysinger: > > 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. > > > > [...] > > > > +- 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. > > isnt the at91 logic inverted ? shouldnt the watchdog programming only > be done when someone has opted in to it via some watchdog define ? This was my first version, but Wolfgang NAK'ed it as he see this as the wrong approach. See http://article.gmane.org/gmane.comp.boot-loaders.u-boot/81589 Best regards, Alexander