public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] at91: Don't initialize watchdog if CONFIG_SYS_WDTC_WDMR_VAL is undefined
@ 2010-07-21 12:01 Alexander Stein
  2010-07-21 18:20 ` Wolfgang Denk
  0 siblings, 1 reply; 19+ messages in thread
From: Alexander Stein @ 2010-07-21 12:01 UTC (permalink / raw)
  To: u-boot

This allows Linux to initialize and use the watchdog with the included
driver.
CONFIG_AT91SAM9_WATCHDOG and CONFIG_HW_WATCHDOG should be defined to make
u-boot trigger the watchdog

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 arch/arm/cpu/arm926ejs/at91/lowlevel_init.S |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/arm926ejs/at91/lowlevel_init.S b/arch/arm/cpu/arm926ejs/at91/lowlevel_init.S
index 559c35c..21ebae9 100644
--- a/arch/arm/cpu/arm926ejs/at91/lowlevel_init.S
+++ b/arch/arm/cpu/arm926ejs/at91/lowlevel_init.S
@@ -186,8 +186,10 @@ SDRAM_setup_end:
 	.ltorg
 
 SMRDATA:
+#if defined(CONFIG_SYS_WDTC_WDMR_VAL)
 	.word AT91_ASM_WDT_MR
 	.word CONFIG_SYS_WDTC_WDMR_VAL
+#endif
 	/* configure PIOx as EBI0 D[16-31] */
 #if defined(CONFIG_AT91SAM9263)
 	.word AT91_ASM_PIOD_PDR
-- 
1.7.1

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

end of thread, other threads:[~2010-08-20 20:05 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-21 12:01 [U-Boot] [PATCH] at91: Don't initialize watchdog if CONFIG_SYS_WDTC_WDMR_VAL is undefined Alexander Stein
2010-07-21 18:20 ` Wolfgang Denk
2010-07-22  6:17   ` Alexander Stein
2010-07-22  7:09     ` Wolfgang Denk
2010-07-22  7:24       ` Alexander Stein
2010-07-22 13:53         ` Wolfgang Denk
2010-07-26  6:11           ` Alexander Stein
     [not found]           ` <201007260810.47268.alexander.stein@systec-electronic.com>
2010-07-26  9:01             ` Wolfgang Denk
2010-07-26  9:34               ` [U-Boot] [PATCH v2] at91: Don't initialize watchdog if CONFIG_SKIP_WATCHDOG_INIT " Alexander Stein
2010-07-26 10:49                 ` Wolfgang Denk
2010-07-26 12:03                   ` [U-Boot] [PATCH v3] " Alexander Stein
2010-08-08 22:59                     ` Wolfgang Denk
2010-08-09  6:40                       ` [U-Boot] [PATCH v4] at91: Don't initialize watchdog if CONFIG_SKIP_WATCHDOG_INIT is defined Alexander Stein
2010-08-09  7:13                         ` Mike Frysinger
2010-08-09 11:42                           ` Alexander Stein
2010-08-14  6:29                             ` Mike Frysinger
2010-08-20 12:31                               ` Reinhard Meyer
2010-08-20 17:10                                 ` Mike Frysinger
2010-08-20 20:05                                   ` Reinhard Meyer

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