32ee23adb7d4335adea6a5895a4e42e60f8694d5
[openwrt.git] / target / linux / rb532 / patches / 520-rc32434_wdt.patch
1 Index: linux-2.6.23.17/arch/mips/kernel/time.c
2 ===================================================================
3 --- linux-2.6.23.17.orig/arch/mips/kernel/time.c
4 +++ linux-2.6.23.17/arch/mips/kernel/time.c
5 @@ -479,3 +479,5 @@ EXPORT_SYMBOL(rtc_lock);
6  EXPORT_SYMBOL(to_tm);
7  EXPORT_SYMBOL(rtc_mips_set_time);
8  EXPORT_SYMBOL(rtc_mips_get_time);
9 +EXPORT_SYMBOL(mips_hpt_frequency);
10 +
11 Index: linux-2.6.23.17/drivers/char/watchdog/Kconfig
12 ===================================================================
13 --- linux-2.6.23.17.orig/drivers/char/watchdog/Kconfig
14 +++ linux-2.6.23.17/drivers/char/watchdog/Kconfig
15 @@ -647,6 +647,19 @@ config WATCHDOG_RTAS
16           To compile this driver as a module, choose M here. The module
17           will be called wdrtas.
18  
19 +config RC32434_WDT
20 +       tristate "IDT Interprise 79RC32434 SoC hardware watchdog"
21 +       depends on WATCHDOG && MIKROTIK_RB500
22 +       help
23 +         This is a driver for hardware watchdog integrated in IDT Interprise
24 +         79RC32434 SoC. This watchdog simply watches your kernel to make sure
25 +         it doesn't freeze, and if it does, it reboots your computer after a
26 +         certain amount of time.
27 +
28 +         To compile this driver as a module, choose M here: the module will be
29 +         called rc32434_wdt.
30 +
31 +
32  # S390 Architecture
33  
34  config ZVM_WATCHDOG
35 Index: linux-2.6.23.17/drivers/char/watchdog/Makefile
36 ===================================================================
37 --- linux-2.6.23.17.orig/drivers/char/watchdog/Makefile
38 +++ linux-2.6.23.17/drivers/char/watchdog/Makefile
39 @@ -90,6 +90,7 @@ obj-$(CONFIG_SBC_EPX_C3_WATCHDOG) += sbc
40  obj-$(CONFIG_INDYDOG) += indydog.o
41  obj-$(CONFIG_WDT_MTX1) += mtx-1_wdt.o
42  obj-$(CONFIG_WDT_RM9K_GPI) += rm9k_wdt.o
43 +obj-$(CONFIG_RC32434_WDT) += rc32434_wdt.o
44  
45  # PARISC Architecture
46