AnsweredAssumed Answered

im7: reset the board using wdog 4

Question asked by Vincent Siles on Aug 9, 2016
Latest reply on Nov 24, 2016 by Yuri Muhin

Hi,

I'm trying to implement a watchdog driver for my secure kernel, and I decided to use WDOG 4.

I setting the wdog as follow (timeout is 9 seconds, service event 2 seconds before)

WCR register := (17 << 8) | WCR_SRS | WCR_WDE

 

then I service the wdog with the 0x5555 0xaaaa sequence to make it start.

I have two issues:

- if I use WDOG1, I correctly get the interrupt after 7 seconds to be able to service it. I don't service it and 2 seconds later the boards reset, but U-boot hangs. I only get

 

U-Boot SPL 2015.04-00003-gdefdcdc (Aug 05 2016 - 10:00:29)

 

and the boards is stuck

- if I use WDOG4, I get the interrupt after 7 seconds. I don't service it and the board never reset.

 

How can I reset the board using wdog4 ?

 

Best,

Vincent

Outcomes