blob: f22ebe89fe137a0733cd6afda15c11238c4a1277 [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * National Semiconductor PC87307/PC97307 (ala SC1200) WDT driver
4 * (c) Copyright 2002 Zwane Mwaikambo <zwane@commfireservices.com>,
5 * All Rights Reserved.
6 * Based on wdt.c and wdt977.c by Alan Cox and Woody Suwalski respectively.
7 *
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 * The author(s) of this software shall not be held liable for damages
9 * of any nature resulting due to the use of this software. This
10 * software is provided AS-IS with no warranties.
11 *
12 * Changelog:
13 * 20020220 Zwane Mwaikambo Code based on datasheet, no hardware.
Alan Cox103a1d52008-08-04 17:56:28 +010014 * 20020221 Zwane Mwaikambo Cleanups as suggested by Jeff Garzik
15 * and Alan Cox.
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 * 20020222 Zwane Mwaikambo Added probing.
17 * 20020225 Zwane Mwaikambo Added ISAPNP support.
18 * 20020412 Rob Radez Broke out start/stop functions
Alan Cox103a1d52008-08-04 17:56:28 +010019 * <rob@osinvestor.com> Return proper status instead of
20 * temperature warning
21 * Add WDIOC_GETBOOTSTATUS and
22 * WDIOC_SETOPTIONS ioctls
Linus Torvalds1da177e2005-04-16 15:20:36 -070023 * Fix CONFIG_WATCHDOG_NOWAYOUT
Alan Cox103a1d52008-08-04 17:56:28 +010024 * 20020530 Joel Becker Add Matt Domsch's nowayout module
25 * option
Linus Torvalds1da177e2005-04-16 15:20:36 -070026 * 20030116 Adam Belay Updated to the latest pnp code
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 */
28
Joe Perches27c766a2012-02-15 15:06:19 -080029#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
30
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#include <linux/module.h>
32#include <linux/moduleparam.h>
33#include <linux/miscdevice.h>
34#include <linux/watchdog.h>
35#include <linux/ioport.h>
36#include <linux/spinlock.h>
37#include <linux/notifier.h>
38#include <linux/reboot.h>
39#include <linux/init.h>
40#include <linux/pnp.h>
41#include <linux/fs.h>
Matthew Wilcox6188e102008-04-18 22:21:05 -040042#include <linux/semaphore.h>
Alan Cox103a1d52008-08-04 17:56:28 +010043#include <linux/io.h>
44#include <linux/uaccess.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
46#define SC1200_MODULE_VER "build 20020303"
47#define SC1200_MODULE_NAME "sc1200wdt"
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
49#define MAX_TIMEOUT 255 /* 255 minutes */
50#define PMIR (io) /* Power Management Index Register */
51#define PMDR (io+1) /* Power Management Data Register */
52
53/* Data Register indexes */
54#define FER1 0x00 /* Function enable register 1 */
55#define FER2 0x01 /* Function enable register 2 */
56#define PMC1 0x02 /* Power Management Ctrl 1 */
57#define PMC2 0x03 /* Power Management Ctrl 2 */
58#define PMC3 0x04 /* Power Management Ctrl 3 */
59#define WDTO 0x05 /* Watchdog timeout register */
60#define WDCF 0x06 /* Watchdog config register */
61#define WDST 0x07 /* Watchdog status register */
62
63/* WDCF bitfields - which devices assert WDO */
64#define KBC_IRQ 0x01 /* Keyboard Controller */
65#define MSE_IRQ 0x02 /* Mouse */
66#define UART1_IRQ 0x03 /* Serial0 */
67#define UART2_IRQ 0x04 /* Serial1 */
68/* 5 -7 are reserved */
69
Linus Torvalds1da177e2005-04-16 15:20:36 -070070static int timeout = 1;
71static int io = -1;
72static int io_len = 2; /* for non plug and play */
Alan Cox103a1d52008-08-04 17:56:28 +010073static unsigned long open_flag;
Linus Torvalds1da177e2005-04-16 15:20:36 -070074static char expect_close;
Alexey Dobriyanc7dfd0c2007-11-01 16:27:08 -070075static DEFINE_SPINLOCK(sc1200wdt_lock); /* io port access serialisation */
Linus Torvalds1da177e2005-04-16 15:20:36 -070076
77#if defined CONFIG_PNP
78static int isapnp = 1;
79static struct pnp_dev *wdt_dev;
80
81module_param(isapnp, int, 0);
Alan Cox103a1d52008-08-04 17:56:28 +010082MODULE_PARM_DESC(isapnp,
83 "When set to 0 driver ISA PnP support will be disabled");
Linus Torvalds1da177e2005-04-16 15:20:36 -070084#endif
85
David Howells5d1c93c2017-04-04 16:54:29 +010086module_param_hw(io, int, ioport, 0);
Linus Torvalds1da177e2005-04-16 15:20:36 -070087MODULE_PARM_DESC(io, "io port");
88module_param(timeout, int, 0);
89MODULE_PARM_DESC(timeout, "range is 0-255 minutes, default is 1");
90
Wim Van Sebroeck86a1e182012-03-05 16:51:11 +010091static bool nowayout = WATCHDOG_NOWAYOUT;
92module_param(nowayout, bool, 0);
Alan Cox103a1d52008-08-04 17:56:28 +010093MODULE_PARM_DESC(nowayout,
94 "Watchdog cannot be stopped once started (default="
95 __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
Linus Torvalds1da177e2005-04-16 15:20:36 -070096
97
98
99/* Read from Data Register */
Alan Cox103a1d52008-08-04 17:56:28 +0100100static inline void __sc1200wdt_read_data(unsigned char index,
101 unsigned char *data)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700102{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103 outb_p(index, PMIR);
104 *data = inb(PMDR);
Alan Cox103a1d52008-08-04 17:56:28 +0100105}
106
107static void sc1200wdt_read_data(unsigned char index, unsigned char *data)
108{
109 spin_lock(&sc1200wdt_lock);
110 __sc1200wdt_read_data(index, data);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111 spin_unlock(&sc1200wdt_lock);
112}
113
Linus Torvalds1da177e2005-04-16 15:20:36 -0700114/* Write to Data Register */
Alan Cox103a1d52008-08-04 17:56:28 +0100115static inline void __sc1200wdt_write_data(unsigned char index,
116 unsigned char data)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700117{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118 outb_p(index, PMIR);
119 outb(data, PMDR);
Alan Cox103a1d52008-08-04 17:56:28 +0100120}
121
122static inline void sc1200wdt_write_data(unsigned char index,
123 unsigned char data)
124{
125 spin_lock(&sc1200wdt_lock);
126 __sc1200wdt_write_data(index, data);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700127 spin_unlock(&sc1200wdt_lock);
128}
129
130
131static void sc1200wdt_start(void)
132{
133 unsigned char reg;
Alan Cox103a1d52008-08-04 17:56:28 +0100134 spin_lock(&sc1200wdt_lock);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135
Alan Cox103a1d52008-08-04 17:56:28 +0100136 __sc1200wdt_read_data(WDCF, &reg);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700137 /* assert WDO when any of the following interrupts are triggered too */
138 reg |= (KBC_IRQ | MSE_IRQ | UART1_IRQ | UART2_IRQ);
Alan Cox103a1d52008-08-04 17:56:28 +0100139 __sc1200wdt_write_data(WDCF, reg);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700140 /* set the timeout and get the ball rolling */
Alan Cox103a1d52008-08-04 17:56:28 +0100141 __sc1200wdt_write_data(WDTO, timeout);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700142
Alan Cox103a1d52008-08-04 17:56:28 +0100143 spin_unlock(&sc1200wdt_lock);
144}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700145
146static void sc1200wdt_stop(void)
147{
148 sc1200wdt_write_data(WDTO, 0);
149}
150
Linus Torvalds1da177e2005-04-16 15:20:36 -0700151/* This returns the status of the WDO signal, inactive high. */
152static inline int sc1200wdt_status(void)
153{
154 unsigned char ret;
155
156 sc1200wdt_read_data(WDST, &ret);
157 /* If the bit is inactive, the watchdog is enabled, so return
158 * KEEPALIVEPING which is a bit of a kludge because there's nothing
159 * else for enabled/disabled status
160 */
Alan Cox103a1d52008-08-04 17:56:28 +0100161 return (ret & 0x01) ? 0 : WDIOF_KEEPALIVEPING;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162}
163
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164static int sc1200wdt_open(struct inode *inode, struct file *file)
165{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700166 /* allow one at a time */
Alan Cox103a1d52008-08-04 17:56:28 +0100167 if (test_and_set_bit(0, &open_flag))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168 return -EBUSY;
169
170 if (timeout > MAX_TIMEOUT)
171 timeout = MAX_TIMEOUT;
172
173 sc1200wdt_start();
Joe Perches27c766a2012-02-15 15:06:19 -0800174 pr_info("Watchdog enabled, timeout = %d min(s)", timeout);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700175
Kirill Smelkovc5bf68f2019-03-26 23:51:19 +0300176 return stream_open(inode, file);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700177}
178
179
Alan Cox103a1d52008-08-04 17:56:28 +0100180static long sc1200wdt_ioctl(struct file *file, unsigned int cmd,
181 unsigned long arg)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700182{
183 int new_timeout;
184 void __user *argp = (void __user *)arg;
185 int __user *p = argp;
Alan Cox103a1d52008-08-04 17:56:28 +0100186 static const struct watchdog_info ident = {
187 .options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT |
188 WDIOF_MAGICCLOSE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700189 .firmware_version = 0,
190 .identity = "PC87307/PC97307",
191 };
192
193 switch (cmd) {
Alan Cox103a1d52008-08-04 17:56:28 +0100194 case WDIOC_GETSUPPORT:
Wim Van Sebroecke04ab952009-09-02 09:10:07 +0000195 if (copy_to_user(argp, &ident, sizeof(ident)))
Alan Cox103a1d52008-08-04 17:56:28 +0100196 return -EFAULT;
197 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700198
Alan Cox103a1d52008-08-04 17:56:28 +0100199 case WDIOC_GETSTATUS:
200 return put_user(sc1200wdt_status(), p);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700201
Alan Cox103a1d52008-08-04 17:56:28 +0100202 case WDIOC_GETBOOTSTATUS:
203 return put_user(0, p);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700204
Alan Cox103a1d52008-08-04 17:56:28 +0100205 case WDIOC_SETOPTIONS:
206 {
207 int options, retval = -EINVAL;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700208
Alan Cox103a1d52008-08-04 17:56:28 +0100209 if (get_user(options, p))
210 return -EFAULT;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700211
Alan Cox103a1d52008-08-04 17:56:28 +0100212 if (options & WDIOS_DISABLECARD) {
213 sc1200wdt_stop();
214 retval = 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700215 }
Alan Cox103a1d52008-08-04 17:56:28 +0100216
217 if (options & WDIOS_ENABLECARD) {
218 sc1200wdt_start();
219 retval = 0;
220 }
221
222 return retval;
223 }
Wim Van Sebroeck0c060902008-07-18 11:41:17 +0000224 case WDIOC_KEEPALIVE:
225 sc1200wdt_write_data(WDTO, timeout);
226 return 0;
227
228 case WDIOC_SETTIMEOUT:
229 if (get_user(new_timeout, p))
230 return -EFAULT;
231 /* the API states this is given in secs */
232 new_timeout /= 60;
233 if (new_timeout < 0 || new_timeout > MAX_TIMEOUT)
234 return -EINVAL;
235 timeout = new_timeout;
236 sc1200wdt_write_data(WDTO, timeout);
Gustavo A. R. Silvadf561f662020-08-23 17:36:59 -0500237 fallthrough; /* and return the new timeout */
Wim Van Sebroeck0c060902008-07-18 11:41:17 +0000238
239 case WDIOC_GETTIMEOUT:
240 return put_user(timeout * 60, p);
241
Alan Cox103a1d52008-08-04 17:56:28 +0100242 default:
243 return -ENOTTY;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700244 }
245}
246
247
248static int sc1200wdt_release(struct inode *inode, struct file *file)
249{
250 if (expect_close == 42) {
251 sc1200wdt_stop();
Joe Perches27c766a2012-02-15 15:06:19 -0800252 pr_info("Watchdog disabled\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700253 } else {
254 sc1200wdt_write_data(WDTO, timeout);
Joe Perches27c766a2012-02-15 15:06:19 -0800255 pr_crit("Unexpected close!, timeout = %d min(s)\n", timeout);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700256 }
Alan Cox103a1d52008-08-04 17:56:28 +0100257 clear_bit(0, &open_flag);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700258 expect_close = 0;
259
260 return 0;
261}
262
263
Alan Cox103a1d52008-08-04 17:56:28 +0100264static ssize_t sc1200wdt_write(struct file *file, const char __user *data,
265 size_t len, loff_t *ppos)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700266{
267 if (len) {
268 if (!nowayout) {
269 size_t i;
270
271 expect_close = 0;
272
273 for (i = 0; i != len; i++) {
274 char c;
275
Wim Van Sebroeck7944d3a2008-08-06 20:19:41 +0000276 if (get_user(c, data + i))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700277 return -EFAULT;
278 if (c == 'V')
279 expect_close = 42;
280 }
281 }
282
283 sc1200wdt_write_data(WDTO, timeout);
284 return len;
285 }
286
287 return 0;
288}
289
290
Alan Cox103a1d52008-08-04 17:56:28 +0100291static int sc1200wdt_notify_sys(struct notifier_block *this,
292 unsigned long code, void *unused)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700293{
294 if (code == SYS_DOWN || code == SYS_HALT)
295 sc1200wdt_stop();
296
297 return NOTIFY_DONE;
298}
299
300
Alan Cox103a1d52008-08-04 17:56:28 +0100301static struct notifier_block sc1200wdt_notifier = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700302 .notifier_call = sc1200wdt_notify_sys,
303};
304
Alan Cox103a1d52008-08-04 17:56:28 +0100305static const struct file_operations sc1200wdt_fops = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700306 .owner = THIS_MODULE,
307 .llseek = no_llseek,
308 .write = sc1200wdt_write,
Alan Cox103a1d52008-08-04 17:56:28 +0100309 .unlocked_ioctl = sc1200wdt_ioctl,
Arnd Bergmannb6dfb242019-06-03 14:23:09 +0200310 .compat_ioctl = compat_ptr_ioctl,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700311 .open = sc1200wdt_open,
312 .release = sc1200wdt_release,
313};
314
Alan Cox103a1d52008-08-04 17:56:28 +0100315static struct miscdevice sc1200wdt_miscdev = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700316 .minor = WATCHDOG_MINOR,
317 .name = "watchdog",
318 .fops = &sc1200wdt_fops,
319};
320
321
322static int __init sc1200wdt_probe(void)
323{
324 /* The probe works by reading the PMC3 register's default value of 0x0e
325 * there is one caveat, if the device disables the parallel port or any
326 * of the UARTs we won't be able to detect it.
Alan Cox103a1d52008-08-04 17:56:28 +0100327 * NB. This could be done with accuracy by reading the SID registers,
328 * but we don't have access to those io regions.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700329 */
330
331 unsigned char reg;
332
333 sc1200wdt_read_data(PMC3, &reg);
Alan Cox103a1d52008-08-04 17:56:28 +0100334 reg &= 0x0f; /* we don't want the UART busy bits */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700335 return (reg == 0x0e) ? 0 : -ENODEV;
336}
337
338
339#if defined CONFIG_PNP
340
Arvind Yadav39ad8082017-08-16 10:27:03 +0530341static const struct pnp_device_id scl200wdt_pnp_devices[] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700342 /* National Semiconductor PC87307/PC97307 watchdog component */
343 {.id = "NSC0800", .driver_data = 0},
344 {.id = ""},
345};
346
Alan Cox103a1d52008-08-04 17:56:28 +0100347static int scl200wdt_pnp_probe(struct pnp_dev *dev,
348 const struct pnp_device_id *dev_id)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349{
350 /* this driver only supports one card at a time */
351 if (wdt_dev || !isapnp)
352 return -EBUSY;
353
354 wdt_dev = dev;
355 io = pnp_port_start(wdt_dev, 0);
356 io_len = pnp_port_len(wdt_dev, 0);
357
358 if (!request_region(io, io_len, SC1200_MODULE_NAME)) {
Joe Perches27c766a2012-02-15 15:06:19 -0800359 pr_err("Unable to register IO port %#x\n", io);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360 return -EBUSY;
361 }
362
Joe Perches27c766a2012-02-15 15:06:19 -0800363 pr_info("PnP device found at io port %#x/%d\n", io, io_len);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700364 return 0;
365}
366
Alan Cox103a1d52008-08-04 17:56:28 +0100367static void scl200wdt_pnp_remove(struct pnp_dev *dev)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700368{
Alan Cox103a1d52008-08-04 17:56:28 +0100369 if (wdt_dev) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700370 release_region(io, io_len);
371 wdt_dev = NULL;
372 }
373}
374
375static struct pnp_driver scl200wdt_pnp_driver = {
376 .name = "scl200wdt",
377 .id_table = scl200wdt_pnp_devices,
378 .probe = scl200wdt_pnp_probe,
379 .remove = scl200wdt_pnp_remove,
380};
381
382#endif /* CONFIG_PNP */
383
384
385static int __init sc1200wdt_init(void)
386{
387 int ret;
388
Joe Perches27c766a2012-02-15 15:06:19 -0800389 pr_info("%s\n", SC1200_MODULE_VER);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700390
Linus Torvalds1da177e2005-04-16 15:20:36 -0700391#if defined CONFIG_PNP
392 if (isapnp) {
393 ret = pnp_register_driver(&scl200wdt_pnp_driver);
394 if (ret)
395 goto out_clean;
396 }
397#endif
398
399 if (io == -1) {
Joe Perches27c766a2012-02-15 15:06:19 -0800400 pr_err("io parameter must be specified\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700401 ret = -EINVAL;
Akinobu Mita150ed8e2006-10-29 03:43:19 +0900402 goto out_pnp;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700403 }
404
405#if defined CONFIG_PNP
406 /* now that the user has specified an IO port and we haven't detected
407 * any devices, disable pnp support */
Alandace8bb2013-12-04 15:31:52 +0000408 if (isapnp)
409 pnp_unregister_driver(&scl200wdt_pnp_driver);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700410 isapnp = 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700411#endif
412
413 if (!request_region(io, io_len, SC1200_MODULE_NAME)) {
Joe Perches27c766a2012-02-15 15:06:19 -0800414 pr_err("Unable to register IO port %#x\n", io);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700415 ret = -EBUSY;
Akinobu Mita150ed8e2006-10-29 03:43:19 +0900416 goto out_pnp;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700417 }
418
419 ret = sc1200wdt_probe();
420 if (ret)
421 goto out_io;
422
423 ret = register_reboot_notifier(&sc1200wdt_notifier);
424 if (ret) {
Joe Perches27c766a2012-02-15 15:06:19 -0800425 pr_err("Unable to register reboot notifier err = %d\n", ret);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700426 goto out_io;
427 }
428
429 ret = misc_register(&sc1200wdt_miscdev);
430 if (ret) {
Joe Perches27c766a2012-02-15 15:06:19 -0800431 pr_err("Unable to register miscdev on minor %d\n",
432 WATCHDOG_MINOR);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700433 goto out_rbt;
434 }
435
436 /* ret = 0 */
437
438out_clean:
439 return ret;
440
441out_rbt:
442 unregister_reboot_notifier(&sc1200wdt_notifier);
443
444out_io:
445 release_region(io, io_len);
446
Akinobu Mita150ed8e2006-10-29 03:43:19 +0900447out_pnp:
448#if defined CONFIG_PNP
449 if (isapnp)
450 pnp_unregister_driver(&scl200wdt_pnp_driver);
451#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700452 goto out_clean;
453}
454
455
456static void __exit sc1200wdt_exit(void)
457{
458 misc_deregister(&sc1200wdt_miscdev);
459 unregister_reboot_notifier(&sc1200wdt_notifier);
460
461#if defined CONFIG_PNP
Alan Cox103a1d52008-08-04 17:56:28 +0100462 if (isapnp)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700463 pnp_unregister_driver(&scl200wdt_pnp_driver);
464 else
465#endif
466 release_region(io, io_len);
467}
468
469module_init(sc1200wdt_init);
470module_exit(sc1200wdt_exit);
471
472MODULE_AUTHOR("Zwane Mwaikambo <zwane@commfireservices.com>");
Wim Van Sebroeck143a2e52009-03-18 08:35:09 +0000473MODULE_DESCRIPTION(
474 "Driver for National Semiconductor PC87307/PC97307 watchdog component");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700475MODULE_LICENSE("GPL");