1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #include <linux/config.h>
23
24 #define WATCHDOG_MINOR 130
25 #define TEMP_MINOR 131
26
27 #define WDT_COUNT0 (io+0)
28 #define WDT_COUNT1 (io+1)
29 #define WDT_COUNT2 (io+2)
30 #define WDT_CR (io+3)
31 #define WDT_SR (io+4)
32 #define WDT_RT (io+5)
33 #define WDT_UNUSED (io+6)
34 #define WDT_DC (io+7)
35
36 #define WDC_SR_WCCR 1
37 #define WDC_SR_TGOOD 2
38 #define WDC_SR_ISOI0 4
39 #define WDC_SR_ISII1 8
40 #define WDC_SR_FANGOOD 16
41 #define WDC_SR_PSUOVER 32
42 #define WDC_SR_PSUUNDR 64
43 #define WDC_SR_IRQ 128
44
45
46
47
48
49
50 #ifdef CONFIG_WDT_501
51
52 #ifdef CONFIG_WDT501_FAN
53 #define FEATUREMAP1 0
54 #else
55 #define FEATUREMAP1 WDC_SR_FANGOOD
56 #endif
57
58 #define FEATUREMAP2 0
59 #endif
60
61
62 #ifdef CONFIG_WDT500
63 #define FEATUREMAP1 (WDC_SR_TGOOD|WDC_SR_FANGOOD)
64 #define FEATUREMAP2 (WDC_SR_PSUOVER|WDC_SR_PSUUNDR)
65 #endif
66
67 #ifdef CONFIG_SOFT_WATCHDOG
68 #define FEATUREMAP1 0
69 #define FEATUREMAP2 0
70 #endif
71
72 #ifndef FEATUREMAP1
73 #error "Config option not set"
74 #endif