public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] watchdog reset in mpc824x timer interrupt.
@ 2003-09-14 15:14 Gleb Natapov
  2003-09-14 19:05 ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: Gleb Natapov @ 2003-09-14 15:14 UTC (permalink / raw)
  To: u-boot

Hello,

 Attached patch makes timer_interrupt to perform watchdog reset on all
boards that support watchdog and not only for OXC.

CHANGELOG:
perform watchdog reset in mpc824x timer interrupt on all boards that have watchdog.

--
			Gleb.
-------------- next part --------------
Index: cpu/mpc824x/interrupts.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/cpu/mpc824x/interrupts.c,v
retrieving revision 1.3
diff -u -r1.3 interrupts.c
--- cpu/mpc824x/interrupts.c	27 Jun 2003 21:32:33 -0000	1.3
+++ cpu/mpc824x/interrupts.c	14 Sep 2003 15:10:44 -0000
@@ -27,6 +27,7 @@
 #include <asm/processor.h>
 #include <asm/pci_io.h>
 #include <commproc.h>
+#include <watchdog.h>
 #include "drivers/epic.h"
 
 /****************************************************************************/
@@ -149,15 +150,9 @@
 
 	timestamp++;
 
-#if defined(CONFIG_WATCHDOG)
+#if defined(CONFIG_WATCHDOG) || defined (CONFIG_HW_WATCHDOG)
 	if ((timestamp % (CFG_HZ / 2)) == 0) {
-#if defined(CONFIG_OXC)
-		{
-			extern void oxc_wdt_reset (void);
-
-			oxc_wdt_reset ();
-		}
-#endif
+		WATCHDOG_RESET ();
 	}
 #endif							/* CONFIG_WATCHDOG */
 #if defined(CONFIG_SHOW_ACTIVITY) && defined(CONFIG_OXC)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-12-15 16:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-14 15:14 [U-Boot-Users] watchdog reset in mpc824x timer interrupt Gleb Natapov
2003-09-14 19:05 ` Wolfgang Denk
2003-09-15  7:00   ` Gleb Natapov
2003-09-15 14:56     ` Wolfgang Denk
2003-09-16 12:07       ` Gleb Natapov
2003-09-18  8:22         ` Wolfgang Denk
2003-09-19  9:03           ` Gleb Natapov
2003-10-14  7:07             ` Gleb Natapov
2003-10-14 20:28               ` Wolfgang Denk
2003-12-06 22:30             ` Wolfgang Denk
2003-12-15 16:30               ` Ronen Shitrit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox