diff options
author | John Crispin <john@openwrt.org> | 2015-07-14 07:43:10 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-07-14 07:43:10 +0000 |
commit | d5d3b5e49cf7f7ea8c46605236cbe06eaa850d42 (patch) | |
tree | f9d68e440f707d5ee0cd3015f8bf542650735ee1 /target/linux/gemini/patches-4.1/111-arm-gemini-add-watchdog-device.patch | |
parent | 023b0e0b38e9a6a9f30d04576ad665ac053b3661 (diff) | |
download | mtk-20170518-d5d3b5e49cf7f7ea8c46605236cbe06eaa850d42.zip mtk-20170518-d5d3b5e49cf7f7ea8c46605236cbe06eaa850d42.tar.gz mtk-20170518-d5d3b5e49cf7f7ea8c46605236cbe06eaa850d42.tar.bz2 |
gemini: add 4.1 support
Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 46353
Diffstat (limited to 'target/linux/gemini/patches-4.1/111-arm-gemini-add-watchdog-device.patch')
-rw-r--r-- | target/linux/gemini/patches-4.1/111-arm-gemini-add-watchdog-device.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-4.1/111-arm-gemini-add-watchdog-device.patch b/target/linux/gemini/patches-4.1/111-arm-gemini-add-watchdog-device.patch new file mode 100644 index 0000000..a0435d3 --- /dev/null +++ b/target/linux/gemini/patches-4.1/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 +@@ -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); + |