aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/gemini/patches-3.10/111-arm-gemini-add-watchdog-device.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-07-06 17:51:14 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2014-07-06 17:51:14 +0000
commit3f78cadedd901579d8592fa4d6297899bec3a333 (patch)
tree3f0715628a962bda0ec01a437dfc6b57bc3d763e /target/linux/gemini/patches-3.10/111-arm-gemini-add-watchdog-device.patch
parent3597b7d456f33f4d27c3d8e07e9707b30e13cfc1 (diff)
downloadupstream-3f78cadedd901579d8592fa4d6297899bec3a333.tar.gz
upstream-3f78cadedd901579d8592fa4d6297899bec3a333.tar.bz2
upstream-3f78cadedd901579d8592fa4d6297899bec3a333.zip
gemini: add support for kernel 3.10
This is compile tested only, please run test and report back. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 41531
Diffstat (limited to 'target/linux/gemini/patches-3.10/111-arm-gemini-add-watchdog-device.patch')
-rw-r--r--target/linux/gemini/patches-3.10/111-arm-gemini-add-watchdog-device.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-3.10/111-arm-gemini-add-watchdog-device.patch b/target/linux/gemini/patches-3.10/111-arm-gemini-add-watchdog-device.patch
new file mode 100644
index 0000000000..00ca35d96a
--- /dev/null
+++ b/target/linux/gemini/patches-3.10/111-arm-gemini-add-watchdog-device.patch
@@ -0,0 +1,33 @@
+--- a/arch/arm/mach-gemini/devices.c
++++ b/arch/arm/mach-gemini/devices.c
+@@ -117,3 +117,20 @@ int __init platform_register_rtc(void)
+ return platform_device_register(&gemini_rtc_device);
+ }
+
++static struct resource wdt_resource = {
++ .start = GEMINI_WAQTCHDOG_BASE,
++ .end = GEMINI_WAQTCHDOG_BASE + 0x18,
++ .flags = IORESOURCE_MEM,
++};
++
++static struct platform_device wdt_device = {
++ .name = "gemini-wdt",
++ .id = 0,
++ .resource = &wdt_resource,
++ .num_resources = 1,
++};
++
++int __init platform_register_watchdog(void)
++{
++ return platform_device_register(&wdt_device);
++}
+--- a/arch/arm/mach-gemini/common.h
++++ b/arch/arm/mach-gemini/common.h
+@@ -25,6 +25,7 @@ extern int platform_register_uart(void);
+ extern int platform_register_pflash(unsigned int size,
+ struct mtd_partition *parts,
+ unsigned int nr_parts);
++extern int platform_register_watchdog(void);
+
+ extern void gemini_restart(char mode, const char *cmd);
+