diff options
author | Roman Yeryomin <roman@advem.lv> | 2016-08-22 02:36:50 +0300 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-08-23 15:41:27 +0200 |
commit | f046737e92f9a13acbe9139e1ded83287d31eeb5 (patch) | |
tree | a99693b42935d5d4ea1addf3514003df4e7898bd /target/linux/gemini/patches-4.4/111-arm-gemini-add-watchdog-device.patch | |
parent | e58c20aac319e5d9722caed2d64b6338c6b04b85 (diff) | |
download | upstream-f046737e92f9a13acbe9139e1ded83287d31eeb5.tar.gz upstream-f046737e92f9a13acbe9139e1ded83287d31eeb5.tar.bz2 upstream-f046737e92f9a13acbe9139e1ded83287d31eeb5.zip |
gemini: add Linux 4.4 support
Signed-off-by: Roman Yeryomin <roman@advem.lv>
[Jo-Philipp Wich: change commit title]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/linux/gemini/patches-4.4/111-arm-gemini-add-watchdog-device.patch')
-rw-r--r-- | target/linux/gemini/patches-4.4/111-arm-gemini-add-watchdog-device.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-4.4/111-arm-gemini-add-watchdog-device.patch b/target/linux/gemini/patches-4.4/111-arm-gemini-add-watchdog-device.patch new file mode 100644 index 0000000000..ab32e9e844 --- /dev/null +++ b/target/linux/gemini/patches-4.4/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 +@@ -116,3 +116,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 +@@ -27,6 +27,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(enum reboot_mode mode, const char *cmd); + |