* [U-Boot] [POWERPC] muas3001: activate WDT for the muas3001 board.
@ 2008-09-08 8:20 Heiko Schocher
2008-09-10 8:53 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Heiko Schocher @ 2008-09-08 8:20 UTC (permalink / raw)
To: u-boot
[POWERPC] muas3001: activate WDT for the muas3001 board.
Signed-off-by: Heiko Schocher <hs@denx.de>
---
include/configs/muas3001.h | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/include/configs/muas3001.h b/include/configs/muas3001.h
index 5d157b6..55f7b1e 100644
--- a/include/configs/muas3001.h
+++ b/include/configs/muas3001.h
@@ -38,6 +38,9 @@
/* Do boardspecific init */
#define CONFIG_BOARD_EARLY_INIT_R 1
+/* enable Watchdog */
+#define CONFIG_WATCHDOG 1
+
/*
* Select serial console configuration
*
@@ -181,8 +184,6 @@
#define CONFIG_BOOTCOMMAND "run net_nfs"
#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
-#undef CONFIG_WATCHDOG /* disable platform specific watchdog */
-
/*
* Miscellaneous configurable options
*/
@@ -277,11 +278,24 @@
#define CFG_HID2 0
#define CFG_SIUMCR 0x00200000
-#define CFG_SYPCR 0xFFFFFFC3
#define CFG_BCR 0x004c0000
#define CFG_SCCR 0x0
/*-----------------------------------------------------------------------
+ * SYPCR - System Protection Control 4-35
+ * SYPCR can only be written once after reset!
+ *-----------------------------------------------------------------------
+ * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
+ */
+#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 */
+
+/*-----------------------------------------------------------------------
* RMR - Reset Mode Register 5-5
*-----------------------------------------------------------------------
* turn on Checkstop Reset Enable
--
1.5.6.1
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [POWERPC] muas3001: activate WDT for the muas3001 board.
2008-09-08 8:20 [U-Boot] [POWERPC] muas3001: activate WDT for the muas3001 board Heiko Schocher
@ 2008-09-10 8:53 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2008-09-10 8:53 UTC (permalink / raw)
To: u-boot
Dear Heiko Schocher,
In message <48C4E043.4050908@denx.de> you wrote:
> [POWERPC] muas3001: activate WDT for the muas3001 board.
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
> ---
> include/configs/muas3001.h | 20 +++++++++++++++++---
> 1 files changed, 17 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Obviously, a major malfunction has occurred."
-- Steve Nesbitt, voice of Mission Control, January 28,
1986, as the shuttle Challenger exploded within view
of the grandstands.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-10 8:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-08 8:20 [U-Boot] [POWERPC] muas3001: activate WDT for the muas3001 board Heiko Schocher
2008-09-10 8:53 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox