@@ -35,68 +35,68 @@ MODULE_PARM_DESC(nowayout,
35
35
"Watchdog cannot be stopped once started (default="
36
36
__MODULE_STRING (WATCHDOG_NOWAYOUT ) ")" );
37
37
38
- static int ux500_wdt_start (struct watchdog_device * wdd )
38
+ static int db8500_wdt_start (struct watchdog_device * wdd )
39
39
{
40
40
return prcmu_enable_a9wdog (PRCMU_WDOG_ALL );
41
41
}
42
42
43
- static int ux500_wdt_stop (struct watchdog_device * wdd )
43
+ static int db8500_wdt_stop (struct watchdog_device * wdd )
44
44
{
45
45
return prcmu_disable_a9wdog (PRCMU_WDOG_ALL );
46
46
}
47
47
48
- static int ux500_wdt_keepalive (struct watchdog_device * wdd )
48
+ static int db8500_wdt_keepalive (struct watchdog_device * wdd )
49
49
{
50
50
return prcmu_kick_a9wdog (PRCMU_WDOG_ALL );
51
51
}
52
52
53
- static int ux500_wdt_set_timeout (struct watchdog_device * wdd ,
53
+ static int db8500_wdt_set_timeout (struct watchdog_device * wdd ,
54
54
unsigned int timeout )
55
55
{
56
- ux500_wdt_stop (wdd );
56
+ db8500_wdt_stop (wdd );
57
57
prcmu_load_a9wdog (PRCMU_WDOG_ALL , timeout * 1000 );
58
- ux500_wdt_start (wdd );
58
+ db8500_wdt_start (wdd );
59
59
60
60
return 0 ;
61
61
}
62
62
63
- static const struct watchdog_info ux500_wdt_info = {
63
+ static const struct watchdog_info db8500_wdt_info = {
64
64
.options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE ,
65
- .identity = "Ux500 WDT" ,
65
+ .identity = "DB8500 WDT" ,
66
66
.firmware_version = 1 ,
67
67
};
68
68
69
- static const struct watchdog_ops ux500_wdt_ops = {
69
+ static const struct watchdog_ops db8500_wdt_ops = {
70
70
.owner = THIS_MODULE ,
71
- .start = ux500_wdt_start ,
72
- .stop = ux500_wdt_stop ,
73
- .ping = ux500_wdt_keepalive ,
74
- .set_timeout = ux500_wdt_set_timeout ,
71
+ .start = db8500_wdt_start ,
72
+ .stop = db8500_wdt_stop ,
73
+ .ping = db8500_wdt_keepalive ,
74
+ .set_timeout = db8500_wdt_set_timeout ,
75
75
};
76
76
77
- static struct watchdog_device ux500_wdt = {
78
- .info = & ux500_wdt_info ,
79
- .ops = & ux500_wdt_ops ,
77
+ static struct watchdog_device db8500_wdt = {
78
+ .info = & db8500_wdt_info ,
79
+ .ops = & db8500_wdt_ops ,
80
80
.min_timeout = WATCHDOG_MIN ,
81
81
.max_timeout = WATCHDOG_MAX28 ,
82
82
};
83
83
84
- static int ux500_wdt_probe (struct platform_device * pdev )
84
+ static int db8500_wdt_probe (struct platform_device * pdev )
85
85
{
86
86
struct device * dev = & pdev -> dev ;
87
87
int ret ;
88
88
89
89
timeout = 600 ; /* Default to 10 minutes */
90
- ux500_wdt .parent = dev ;
91
- watchdog_set_nowayout (& ux500_wdt , nowayout );
90
+ db8500_wdt .parent = dev ;
91
+ watchdog_set_nowayout (& db8500_wdt , nowayout );
92
92
93
93
/* disable auto off on sleep */
94
94
prcmu_config_a9wdog (PRCMU_WDOG_CPU1 , false);
95
95
96
96
/* set HW initial value */
97
97
prcmu_load_a9wdog (PRCMU_WDOG_ALL , timeout * 1000 );
98
98
99
- ret = devm_watchdog_register_device (dev , & ux500_wdt );
99
+ ret = devm_watchdog_register_device (dev , & db8500_wdt );
100
100
if (ret )
101
101
return ret ;
102
102
@@ -106,47 +106,47 @@ static int ux500_wdt_probe(struct platform_device *pdev)
106
106
}
107
107
108
108
#ifdef CONFIG_PM
109
- static int ux500_wdt_suspend (struct platform_device * pdev ,
109
+ static int db8500_wdt_suspend (struct platform_device * pdev ,
110
110
pm_message_t state )
111
111
{
112
- if (watchdog_active (& ux500_wdt )) {
113
- ux500_wdt_stop ( & ux500_wdt );
112
+ if (watchdog_active (& db8500_wdt )) {
113
+ db8500_wdt_stop ( & db8500_wdt );
114
114
prcmu_config_a9wdog (PRCMU_WDOG_CPU1 , true);
115
115
116
116
prcmu_load_a9wdog (PRCMU_WDOG_ALL , timeout * 1000 );
117
- ux500_wdt_start ( & ux500_wdt );
117
+ db8500_wdt_start ( & db8500_wdt );
118
118
}
119
119
return 0 ;
120
120
}
121
121
122
- static int ux500_wdt_resume (struct platform_device * pdev )
122
+ static int db8500_wdt_resume (struct platform_device * pdev )
123
123
{
124
- if (watchdog_active (& ux500_wdt )) {
125
- ux500_wdt_stop ( & ux500_wdt );
124
+ if (watchdog_active (& db8500_wdt )) {
125
+ db8500_wdt_stop ( & db8500_wdt );
126
126
prcmu_config_a9wdog (PRCMU_WDOG_CPU1 , false);
127
127
128
128
prcmu_load_a9wdog (PRCMU_WDOG_ALL , timeout * 1000 );
129
- ux500_wdt_start ( & ux500_wdt );
129
+ db8500_wdt_start ( & db8500_wdt );
130
130
}
131
131
return 0 ;
132
132
}
133
133
#else
134
- #define ux500_wdt_suspend NULL
135
- #define ux500_wdt_resume NULL
134
+ #define db8500_wdt_suspend NULL
135
+ #define db8500_wdt_resume NULL
136
136
#endif
137
137
138
- static struct platform_driver ux500_wdt_driver = {
139
- .probe = ux500_wdt_probe ,
140
- .suspend = ux500_wdt_suspend ,
141
- .resume = ux500_wdt_resume ,
138
+ static struct platform_driver db8500_wdt_driver = {
139
+ .probe = db8500_wdt_probe ,
140
+ .suspend = db8500_wdt_suspend ,
141
+ .resume = db8500_wdt_resume ,
142
142
.driver = {
143
- .name = "ux500_wdt " ,
143
+ .name = "db8500_wdt " ,
144
144
},
145
145
};
146
146
147
- module_platform_driver (ux500_wdt_driver );
147
+ module_platform_driver (db8500_wdt_driver );
148
148
149
149
MODULE_AUTHOR (
"Jonas Aaberg <[email protected] >" );
150
- MODULE_DESCRIPTION ("Ux500 Watchdog Driver" );
150
+ MODULE_DESCRIPTION ("DB8500 Watchdog Driver" );
151
151
MODULE_LICENSE ("GPL" );
152
- MODULE_ALIAS ("platform:ux500_wdt " );
152
+ MODULE_ALIAS ("platform:db8500_wdt " );
0 commit comments