From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 5.mo2.mail-out.ovh.net ([87.98.181.248] helo=mo2.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TZQAm-0007WI-V5 for barebox@lists.infradead.org; Fri, 16 Nov 2012 17:57:50 +0000 Received: from mail406.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 937D5DC44C8 for ; Fri, 16 Nov 2012 19:05:25 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 16 Nov 2012 18:55:45 +0100 Message-Id: <1353088545-19406-7-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1353088545-19406-1-git-send-email-plagnioj@jcrosoft.com> References: <20121116175355.GB8327@game.jcrosoft.org> <1353088545-19406-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 7/7] at91sam9x5: add wathdog support To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-at91/at91sam9x5_devices.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-at91/at91sam9x5_devices.c b/arch/arm/mach-at91/at91sam9x5_devices.c index 26a380d..27e9ec9 100644 --- a/arch/arm/mach-at91/at91sam9x5_devices.c +++ b/arch/arm/mach-at91/at91sam9x5_devices.c @@ -10,6 +10,7 @@ * */ #include +#include #include #include #include @@ -234,3 +235,14 @@ resource_size_t __init at91_configure_usart3(unsigned pins) return AT91SAM9X5_BASE_USART3; } #endif + +#ifdef CONFIG_WATCHDOG_AT91SAM9X +static int at91_add_device_watchdog(void) +{ + add_generic_device("at91sam9_wdt", DEVICE_ID_SINGLE, NULL, + AT91_WDT + AT91_BASE_SYS, 16, IORESOURCE_MEM, NULL); + + return 0; +} +coredevice_initcall(at91_add_device_watchdog); +#endif -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox