1 From 60110b93a5cbc6ec3d92035d9daf86a30a7fd791 Mon Sep 17 00:00:00 2001
2 From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
3 Date: Wed, 14 Nov 2012 19:18:22 +0800
4 Subject: [PATCH 3/4] at91sam9260/9g20: add wathdog support
6 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
7 Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
9 arch/arm/mach-at91/at91sam9260_devices.c | 11 +++++++++++
10 1 file changed, 11 insertions(+)
12 diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c
13 index 67c4ea860..51852a9a8 100644
14 --- a/arch/arm/mach-at91/at91sam9260_devices.c
15 +++ b/arch/arm/mach-at91/at91sam9260_devices.c
16 @@ -400,6 +400,17 @@ void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data)
17 void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data) {}
20 +#ifdef CONFIG_WATCHDOG_AT91SAM9X
21 +static int at91_add_device_watchdog(void)
23 + add_generic_device("at91sam9_wdt", DEVICE_ID_SINGLE, NULL,
24 + AT91_WDT + AT91_BASE_SYS, 16, IORESOURCE_MEM, NULL);
28 +coredevice_initcall(at91_add_device_watchdog);
31 static int at91_fixup_device(void)
33 at91_rtt_irq_fixup(IOMEM(AT91SAM9260_BASE_RTT));