From: Gleb Natapov <gleb@nbase.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] watchdog reset in mpc824x timer interrupt.
Date: Sun, 14 Sep 2003 18:14:27 +0300 [thread overview]
Message-ID: <20030914151427.GA16669@nbase.co.il> (raw)
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)
next reply other threads:[~2003-09-14 15:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-14 15:14 Gleb Natapov [this message]
2003-09-14 19:05 ` [U-Boot-Users] watchdog reset in mpc824x timer interrupt 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030914151427.GA16669@nbase.co.il \
--to=gleb@nbase.co.il \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.