aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rb532/patches-2.6.24/520-rc32434_wdt.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-07-15 17:18:28 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-07-15 17:18:28 +0000
commit84ee0935744035d586676b5eb0f34ca338bedb8a (patch)
treed9739f3e39aff522c95b81398ef01375c26a11b3 /target/linux/rb532/patches-2.6.24/520-rc32434_wdt.patch
parentbb34f3521e9c8328772ab19afcb1a1b666631fd6 (diff)
downloadmaster-187ad058-84ee0935744035d586676b5eb0f34ca338bedb8a.tar.gz
master-187ad058-84ee0935744035d586676b5eb0f34ca338bedb8a.tar.bz2
master-187ad058-84ee0935744035d586676b5eb0f34ca338bedb8a.zip
Add basic 2.6.24 support for rb532, korina napi code has to be adapted to work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11844 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rb532/patches-2.6.24/520-rc32434_wdt.patch')
-rw-r--r--target/linux/rb532/patches-2.6.24/520-rc32434_wdt.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/rb532/patches-2.6.24/520-rc32434_wdt.patch b/target/linux/rb532/patches-2.6.24/520-rc32434_wdt.patch
new file mode 100644
index 0000000000..6e26237042
--- /dev/null
+++ b/target/linux/rb532/patches-2.6.24/520-rc32434_wdt.patch
@@ -0,0 +1,33 @@
+diff -urN linux-2.6.24.7/arch/mips/kernel/time.c linux-2.6.24.7.new/arch/mips/kernel/time.c
+--- linux-2.6.24.7/arch/mips/kernel/time.c 2008-05-07 01:22:34.000000000 +0200
++++ linux-2.6.24.7.new/arch/mips/kernel/time.c 2008-07-15 15:38:33.000000000 +0200
+@@ -75,6 +75,7 @@
+ */
+
+ unsigned int mips_hpt_frequency;
++EXPORT_SYMBOL(mips_hpt_frequency);
+
+ void __init clocksource_set_clock(struct clocksource *cs, unsigned int clock)
+ {
+diff -urN linux-2.6.24.7/drivers/watchdog/Kconfig linux-2.6.24.7.new/drivers/watchdog/Kconfig
+--- linux-2.6.24.7/drivers/watchdog/Kconfig 2008-05-07 01:22:34.000000000 +0200
++++ linux-2.6.24.7.new/drivers/watchdog/Kconfig 2008-07-15 15:39:24.000000000 +0200
+@@ -639,6 +639,18 @@
+ help
+ Hardware driver for the TI AR7 Watchdog Timer.
+
++config RC32434_WDT
++ tristate "IDT Interprise 79RC32434 SoC hardware watchdog"
++ depends on WATCHDOG && MIKROTIK_RB500
++ help
++ This is a driver for hardware watchdog integrated in IDT Interprise
++ 79RC32434 SoC. This watchdog simply watches your kernel to make sure
++ it doesn't freeze, and if it does, it reboots your computer after a
++ certain amount of time.
++
++ To compile this driver as a module, choose M here: the module will be
++ called rc32434_wdt.
++
+ # PARISC Architecture
+
+ # POWERPC Architecture