Commit f770ee2f authored by Ian Campbell's avatar Ian Campbell Committed by Russell King

[ARM PATCH] 1939/1: SA1100 watchdog driver also works on PXA2xx

Patch from Ian Campbell

The SA1100 watchdog driver also works fine on the PXA2xx. Tested on 
a PXA255 based platform.
parent f0524a16
...@@ -96,12 +96,13 @@ config IXP4XX_WATCHDOG ...@@ -96,12 +96,13 @@ config IXP4XX_WATCHDOG
Say N if you are unsure. Say N if you are unsure.
config SA1100_WATCHDOG config SA1100_WATCHDOG
tristate "SA1100 watchdog" tristate "SA1100/PXA2xx watchdog"
depends on WATCHDOG && ARCH_SA1100 depends on WATCHDOG && ( ARCH_SA1100 || ARCH_PXA )
help help
Watchdog timer embedded into SA11x0 chips. This will reboot your Watchdog timer embedded into SA11x0 and PXA2xx chips. This will
system when timeout is reached. reboot your system when timeout is reached.
NOTE, that once enabled, this timer cannot be disabled.
NOTE: once enabled, this timer cannot be disabled.
To compile this driver as a module, choose M here: the To compile this driver as a module, choose M here: the
module will be called sa1100_wdt. module will be called sa1100_wdt.
......
/* /*
* Watchdog driver for the SA11x0 * Watchdog driver for the SA11x0/PXA2xx
* *
* (c) Copyright 2000 Oleg Drokin <green@crimea.edu> * (c) Copyright 2000 Oleg Drokin <green@crimea.edu>
* Based on SoftDog driver by Alan Cox <alan@redhat.com> * Based on SoftDog driver by Alan Cox <alan@redhat.com>
...@@ -174,7 +174,7 @@ static struct file_operations sa1100dog_fops = ...@@ -174,7 +174,7 @@ static struct file_operations sa1100dog_fops =
static struct miscdevice sa1100dog_miscdev = static struct miscdevice sa1100dog_miscdev =
{ {
.minor = WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
.name = "SA1100 watchdog", .name = "SA1100/PXA2xx watchdog",
.fops = &sa1100dog_fops, .fops = &sa1100dog_fops,
}; };
...@@ -194,7 +194,7 @@ static int __init sa1100dog_init(void) ...@@ -194,7 +194,7 @@ static int __init sa1100dog_init(void)
ret = misc_register(&sa1100dog_miscdev); ret = misc_register(&sa1100dog_miscdev);
if (ret == 0) if (ret == 0)
printk("SA1100 Watchdog Timer: timer margin %d sec\n", printk("SA1100/PXA2xx Watchdog Timer: timer margin %d sec\n",
margin); margin);
return ret; return ret;
...@@ -209,7 +209,7 @@ module_init(sa1100dog_init); ...@@ -209,7 +209,7 @@ module_init(sa1100dog_init);
module_exit(sa1100dog_exit); module_exit(sa1100dog_exit);
MODULE_AUTHOR("Oleg Drokin <green@crimea.edu>"); MODULE_AUTHOR("Oleg Drokin <green@crimea.edu>");
MODULE_DESCRIPTION("SA1100 Watchdog"); MODULE_DESCRIPTION("SA1100/PXA2xx Watchdog");
module_param(margin, int, 0); module_param(margin, int, 0);
MODULE_PARM_DESC(margin, "Watchdog margin in seconds (default 60s)"); MODULE_PARM_DESC(margin, "Watchdog margin in seconds (default 60s)");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment