From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 8.mo2.mail-out.ovh.net ([188.165.52.147] helo=mo2.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TZPLr-0007YC-Rf for barebox@lists.infradead.org; Fri, 16 Nov 2012 17:05:14 +0000 Received: from mail406.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 4295DDC2FE0 for ; Fri, 16 Nov 2012 18:12:47 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 16 Nov 2012 18:03:03 +0100 Message-Id: <1353085385-14090-5-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 5/7] at91sam9263: add wathdog support To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-at91/at91sam9263_devices.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-at91/at91sam9263_devices.c b/arch/arm/mach-at91/at91sam9263_devices.c index e686480..0386d79 100644 --- a/arch/arm/mach-at91/at91sam9263_devices.c +++ b/arch/arm/mach-at91/at91sam9263_devices.c @@ -10,6 +10,7 @@ * */ #include +#include #include #include #include @@ -351,3 +352,13 @@ void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data) 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