diff options
| author | Stefan Roese <[email protected]> | 2019-04-02 10:57:19 +0200 |
|---|---|---|
| committer | Eugen Hristev <[email protected]> | 2019-04-09 09:28:50 +0300 |
| commit | 6c04bd38572b479b93ee64627f207461a61a54e3 (patch) | |
| tree | 7c1a24906ed3062e5fb370b51cb8092babcaa073 /scripts | |
| parent | 7fbd42f5afc4425ac137b06f46062483f9809327 (diff) | |
watchdog: at91sam9_wdt: Fix WDT setup in at91_wdt_start()
This patch fixes the timer register setup in at91_wdt_start() to
correctly configure the register again. The input timeout value is
now in milli-seconds instead of seconds with the new watchdog API.
Make sure to take this into account and only use a max timeout
value of 16 seconds as appropriate for this SoC.
Also the check against a lower timeout value than 0 is removed. This
check makes no sense, as the timeout value is unsigned.
Signed-off-by: Stefan Roese <[email protected]>
Reported-by: Heiko Schocher <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Andreas Bießmann <[email protected]>
Cc: Eugen Hristev <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Tested on the taurus board:
Tested-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
