[U-Boot] [PATCH 2/2] at91sam9263ek: active watchdog support via at91sam9263ek_wdt_config
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Sun Feb 1 17:29:22 CET 2009
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
Makefile | 5 +++++
doc/README.at91 | 2 +-
include/configs/at91sam9263ek.h | 5 +++++
3 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 3e61417..cc3a22e 100644
--- a/Makefile
+++ b/Makefile
@@ -2680,6 +2680,7 @@ at91sam9261ek_config : unconfig
at91sam9263ek_nandflash_config \
at91sam9263ek_dataflash_config \
at91sam9263ek_dataflash_cs0_config \
+at91sam9263ek_wdt_config \
at91sam9263ek_config : unconfig
@mkdir -p $(obj)include
@if [ "$(findstring _nandflash,$@)" ] ; then \
@@ -2689,6 +2690,10 @@ at91sam9263ek_config : unconfig
echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
fi;
+ @if [ "$(findstring _wdt_, $@)" ] ; then \
+ echo "#define CONFIG_AT91SAM9_WATCHDOG" >> $(obj)include/config.h ; \
+ $(XECHO) "... configured with watchdog active"; \
+ fi
@$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
at91sam9rlek_nandflash_config \
diff --git a/doc/README.at91 b/doc/README.at91
index c883c7c..1ef3b2a 100644
--- a/doc/README.at91
+++ b/doc/README.at91
@@ -90,7 +90,7 @@ Environment variables
II. Watchdog support
- The watchdog wan only be activate once so you need to activate in the
+ The watchdog can only be activate once so you need to activate in the
bootloader and in the bootstrap if you use it
The you can activate with
diff --git a/include/configs/at91sam9263ek.h b/include/configs/at91sam9263ek.h
index 09b871a..e28903c 100644
--- a/include/configs/at91sam9263ek.h
+++ b/include/configs/at91sam9263ek.h
@@ -201,4 +201,9 @@
#error CONFIG_USE_IRQ not supported
#endif
+/* WATCHDOG */
+#ifdef CONFIG_AT91SAM9_WATCHDOG
+#define CONFIG_HW_WATCHDOG /* watchdog */
+#endif
+
#endif
--
1.5.6.5
More information about the U-Boot
mailing list