diff options
author | Timur Tabi <timur@freescale.com> | 2010-10-13 15:19:36 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-10-14 02:05:32 -0400 |
commit | e0dc09ff9a28f37441c5e92a14de6abda8db49d6 (patch) | |
tree | 9d67ead558435aa6e062aaeaa2750202b7451a3a /drivers/watchdog/Kconfig | |
parent | abd12fe4d1249f6c2c4b34d5ced82f179e6b5d30 (diff) |
powerpc/watchdog: Make default timeout for Book-E watchdog a Kconfig option
The PowerPC Book-E watchdog driver (booke_wdt.c) defines a default timeout
value in the code based on whether it's a Freescale Book-E part of not.
Instead of having hard-coded values in the driver, make it a Kconfig
option.
As newer chips gets faster, the current default values become less
appropriate, since the timeout sometimes occurs before the kernel finishes
booting. Making the value a Kconfig option allows BSPs to configure a new
value without requiring the wdt_period command-line parameter to be set.
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/watchdog/Kconfig')
-rw-r--r-- | drivers/watchdog/Kconfig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index a6812eb31fa1..c356146bd712 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig | |||
@@ -966,6 +966,23 @@ config BOOKE_WDT | |||
966 | Please see Documentation/watchdog/watchdog-api.txt for | 966 | Please see Documentation/watchdog/watchdog-api.txt for |
967 | more information. | 967 | more information. |
968 | 968 | ||
969 | config BOOKE_WDT_DEFAULT_TIMEOUT | ||
970 | int "PowerPC Book-E Watchdog Timer Default Timeout" | ||
971 | depends on BOOKE_WDT | ||
972 | default 38 if FSL_BOOKE | ||
973 | range 0 63 if FSL_BOOKE | ||
974 | default 3 if !FSL_BOOKE | ||
975 | range 0 3 if !FSL_BOOKE | ||
976 | help | ||
977 | Select the default watchdog timer period to be used by the PowerPC | ||
978 | Book-E watchdog driver. A watchdog "event" occurs when the bit | ||
979 | position represented by this number transitions from zero to one. | ||
980 | |||
981 | For Freescale Book-E processors, this is a number between 0 and 63. | ||
982 | For other Book-E processors, this is a number between 0 and 3. | ||
983 | |||
984 | The value can be overidden by the wdt_period command-line parameter. | ||
985 | |||
969 | # PPC64 Architecture | 986 | # PPC64 Architecture |
970 | 987 | ||
971 | config WATCHDOG_RTAS | 988 | config WATCHDOG_RTAS |