diff options
author | Fabio Porcedda <fabio.porcedda@gmail.com> | 2013-05-10 00:03:39 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-05-11 22:34:22 +0200 |
commit | 4fabcd28ca38482ccf92f4c0c9079ad109a9a106 (patch) | |
tree | bd8a8c300222bdaf3b1aeba6997d8cefe36d0d6a /board/telit/evk-pro3/barebox-2013.04.0-0003-at91sam9260-9g20-add-wathdog-support.patch | |
parent | 603293f5ff8e2aa95075f03f1044afb1a7c03919 (diff) | |
download | buildroot-novena-4fabcd28ca38482ccf92f4c0c9079ad109a9a106.tar.gz buildroot-novena-4fabcd28ca38482ccf92f4c0c9079ad109a9a106.zip |
configs: add defconfig for Telit EVK-PRO3
For more info, please read board/telit/evk-pro3/readme.txt
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'board/telit/evk-pro3/barebox-2013.04.0-0003-at91sam9260-9g20-add-wathdog-support.patch')
-rw-r--r-- | board/telit/evk-pro3/barebox-2013.04.0-0003-at91sam9260-9g20-add-wathdog-support.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/board/telit/evk-pro3/barebox-2013.04.0-0003-at91sam9260-9g20-add-wathdog-support.patch b/board/telit/evk-pro3/barebox-2013.04.0-0003-at91sam9260-9g20-add-wathdog-support.patch new file mode 100644 index 000000000..bf9720030 --- /dev/null +++ b/board/telit/evk-pro3/barebox-2013.04.0-0003-at91sam9260-9g20-add-wathdog-support.patch @@ -0,0 +1,40 @@ +From 3338bcb05479f1149420d4a0ea3904cb9e42eef5 Mon Sep 17 00:00:00 2001 +From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> +Date: Wed, 14 Nov 2012 19:18:22 +0800 +Subject: [PATCH 3/5] at91sam9260/9g20: add wathdog support + +Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> +--- + 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 1c375ee..5885f91 100644 +--- a/arch/arm/mach-at91/at91sam9260_devices.c ++++ b/arch/arm/mach-at91/at91sam9260_devices.c +@@ -10,6 +10,7 @@ + * + */ + #include <common.h> ++#include <init.h> + #include <sizes.h> + #include <asm/armlinux.h> + #include <asm/hardware.h> +@@ -397,3 +398,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.8.1.4 + |