diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-09-13 16:39:36 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-09-13 16:39:36 +0000 |
commit | e2db78c0e1acee64cf528d6215863ac782cef369 (patch) | |
tree | c8f2eb3447d1dcd2908321e7fd7addc006e1ad9c /target/linux/cns21xx/patches-3.8/202-cns21xx-add-watchdog-device.patch | |
parent | a493a36f6ce8a17a50297c0afa768ce63e11febf (diff) | |
download | master-187ad058-e2db78c0e1acee64cf528d6215863ac782cef369.tar.gz master-187ad058-e2db78c0e1acee64cf528d6215863ac782cef369.tar.bz2 master-187ad058-e2db78c0e1acee64cf528d6215863ac782cef369.zip |
cns21xx: remove 3.8 support
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37973 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/cns21xx/patches-3.8/202-cns21xx-add-watchdog-device.patch')
-rw-r--r-- | target/linux/cns21xx/patches-3.8/202-cns21xx-add-watchdog-device.patch | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/target/linux/cns21xx/patches-3.8/202-cns21xx-add-watchdog-device.patch b/target/linux/cns21xx/patches-3.8/202-cns21xx-add-watchdog-device.patch deleted file mode 100644 index 858fa73d4b..0000000000 --- a/target/linux/cns21xx/patches-3.8/202-cns21xx-add-watchdog-device.patch +++ /dev/null @@ -1,63 +0,0 @@ ---- a/arch/arm/mach-cns21xx/common.h -+++ b/arch/arm/mach-cns21xx/common.h -@@ -20,5 +20,6 @@ extern struct sys_timer cns21xx_timer; - int cns21xx_register_uart0(void); - int cns21xx_register_uart1(void); - int cns21xx_register_usb(void); -+int cns21xx_register_wdt(void); - - #endif /* _MACH_CNS21XX_COMMON_H */ ---- a/arch/arm/mach-cns21xx/devices.c -+++ b/arch/arm/mach-cns21xx/devices.c -@@ -11,6 +11,7 @@ - #include <linux/init.h> - #include <linux/platform_device.h> - #include <linux/serial_8250.h> -+#include <linux/fa_wdt.h> - - #include <mach/irqs.h> - #include <mach/hardware.h> -@@ -77,3 +78,32 @@ int __init cns21xx_register_uart1(void) - HAL_MISC_ENABLE_UART1_PINS(); - return platform_device_register(&cns21xx_uart1_device); - } -+ -+static struct resource cns21xx_wdt_resources[] = { -+ { -+ .start = CNS21XX_WDT_BASE, -+ .end = CNS21XX_WDT_BASE + SZ_4K - 1, -+ .flags = IORESOURCE_MEM, -+ }, -+}; -+ -+#define CNS21XX_WDT_CLOCK 10 /* 10 Hz */ -+ -+static struct fa_wdt_platform_data cns21xx_wdt_data = { -+ .clock = CNS21XX_WDT_CLOCK, -+}; -+ -+static struct platform_device cns21xx_wdt_device = { -+ .name = "fa-wdt", -+ .id = -1, -+ .resource = cns21xx_wdt_resources, -+ .num_resources = ARRAY_SIZE(cns21xx_wdt_resources), -+ .dev = { -+ .platform_data = &cns21xx_wdt_data, -+ }, -+}; -+ -+int __init cns21xx_register_wdt(void) -+{ -+ return platform_device_register(&cns21xx_wdt_device); -+} ---- a/drivers/watchdog/Kconfig -+++ b/drivers/watchdog/Kconfig -@@ -367,7 +367,7 @@ config IMX2_WDT - - config FA_WATCHDOG - tristate "Faraday watchdog" -- depends on ARCH_GEMINI -+ depends on ARCH_GEMINI || ARCH_CNS21XX - help - Say Y here if you want support for the built-in watchdog timer - found in some Faraday FA526 based SoCs. |