From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Thu, 25 Aug 2005 07:40:40 -0400 Subject: [U-Boot-Users] Software watchdog on mpc8247 In-Reply-To: References: Message-ID: <430DAE38.2090903@smiths-aerospace.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Mike Rapoport wrote: > Hello, > > I have a custom board with mpc8247 processor. I'd like to use it's > internal watchdog capability in u-boot (and linux). > I've tried to use the folliwing defines in my board config file > (include/configs/my_board.h): > > #define CONFIG_WATCHDOG 1 > #if defined(CONFIG_WATCHDOG) > #define CFG_SYPCR (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\ > SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE) > #else > #define CFG_SYPCR (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\ > SYPCR_SWRI|SYPCR_SWP) > #endif /* CONFIG_WATCHDOG */ > > but the board does not boot when the watchdog is enabled. > I use u-boot 1.1.3 release. > > -- > Sincerely yours, > Mike Rapoport What did you set the SYPCR to (actual values, preferably from a disassembly/dump)? What is your bus clock? What do you figure your timeout to be? Do you write to the SYPCR only once to set up the WDT (only the first write to the SYPCR "works"). gvb