]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[WATCHDOG] rc32434_wdt: add timeout module parameter
authorPhil Sutter <n0-1@freewrt.org>
Sun, 8 Feb 2009 15:44:42 +0000 (16:44 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 25 Mar 2009 09:00:05 +0000 (09:00 +0000)
commit08eb2e0c084778f30691e3f18540cdb754c56530
tree3bf0dc94b35e4db2452944db4391874d7672b2f8
parent9b655e07d77e3b1a00c1c8302e2ef3b7fb719de3
[WATCHDOG] rc32434_wdt: add timeout module parameter

The WDT timer ticks quite fast (half of the CPU clock speed, which may
be between 198MHz and 330MHz (or 400MHz on newer boards)). Given it's
size of 32Bit, the maximum timeout value ranges from about 21s to 43s,
depending on the configured CPU clock speed.

This patch add's the timeout module parameter and checks that it's not
bigger then the maximum timeout for the given clock speed.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/rc32434_wdt.c