From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 1 Oct 2014 14:07:01 +0200 Subject: [U-Boot] [PATCH V2 10/51] arm: socfpga: Add watchdog disable for socfpga In-Reply-To: <1412160652.11125.24.camel@clsee-VirtualBox.altera.com> References: <1411304339-11348-1-git-send-email-marex@denx.de> <1411304339-11348-11-git-send-email-marex@denx.de> <1412160652.11125.24.camel@clsee-VirtualBox.altera.com> Message-ID: <201410011407.01921.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday, October 01, 2014 at 12:50:52 PM, Chin Liang See wrote: [...] > > + /* > > + * If the HW watchdog is NOT enabled, make sure it is not running, > > + * for example because it was enabled in the preloader. This might > > + * trigger a watchdog-triggered reboot of Linux kernel later. > > + */ > > +#ifndef CONFIG_HW_WATCHDOG > > + socfpga_watchdog_reset(); > > +#endif > > + > > misc_init_r happens at some time after U-Boot entry. Afraid the watchdog > might trigger prior its disabled. Suggest to call socfpga_watchdog_reset > earlier. arch_cpu_init() might be a good idea, thanks. Best regards, Marek Vasut