From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 6.mo2.mail-out.ovh.net ([87.98.165.38] helo=mo2.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TZPLr-0007YA-S2 for barebox@lists.infradead.org; Fri, 16 Nov 2012 17:05:15 +0000 Received: from mail406.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 19DEEDC2F55 for ; Fri, 16 Nov 2012 18:12:47 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 16 Nov 2012 18:03:01 +0100 Message-Id: <1353085385-14090-3-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1353085385-14090-1-git-send-email-plagnioj@jcrosoft.com> References: <20121116165729.GA8327@game.jcrosoft.org> <1353085385-14090-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 3/7] at91sam9260/9g20: add wathdog support To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-at91/at91sam9260_devices.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c index 9c9534e..e781de0 100644 --- a/arch/arm/mach-at91/at91sam9260_devices.c +++ b/arch/arm/mach-at91/at91sam9260_devices.c @@ -10,6 +10,7 @@ * */ #include +#include #include #include #include @@ -356,3 +357,14 @@ void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data) #else void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data) {} #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