
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