From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 22 Jan 2009 12:22:57 +0100 Subject: [U-Boot] [PATCH 2/2] at91sam9263ek: active watchdog support via at91sam9263ek_wdt_config In-Reply-To: <1232623377-26351-2-git-send-email-plagnioj@jcrosoft.com> References: <1232623377-26351-1-git-send-email-plagnioj@jcrosoft.com> <1232623377-26351-2-git-send-email-plagnioj@jcrosoft.com> Message-ID: <1232623377-26351-3-git-send-email-plagnioj@jcrosoft.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- Makefile | 5 +++++ include/configs/at91sam9263ek.h | 5 +++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index c3f089d..2fb0c42 100644 --- a/Makefile +++ b/Makefile @@ -2663,6 +2663,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 \ @@ -2672,6 +2673,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/include/configs/at91sam9263ek.h b/include/configs/at91sam9263ek.h index d9ebc87..080ba8b 100644 --- a/include/configs/at91sam9263ek.h +++ b/include/configs/at91sam9263ek.h @@ -203,4 +203,9 @@ #error CONFIG_USE_IRQ not supported #endif +/* WATCHDOG */ +#ifdef CONFIG_AT91SAM9_WATCHDOG +#define CONFIG_HW_WATCHDOG /* watchdog */ +#endif + #endif -- 1.5.6.5