]> Git Repo - J-u-boot.git/commit
watchdog: at91sam9_wdt: Fix WDT setup in at91_wdt_start()
authorStefan Roese <[email protected]>
Tue, 2 Apr 2019 08:57:19 +0000 (10:57 +0200)
committerEugen Hristev <[email protected]>
Tue, 9 Apr 2019 06:28:50 +0000 (09:28 +0300)
commit6c04bd38572b479b93ee64627f207461a61a54e3
tree7c1a24906ed3062e5fb370b51cb8092babcaa073
parent7fbd42f5afc4425ac137b06f46062483f9809327
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]>
drivers/watchdog/at91sam9_wdt.c
This page took 0.034031 seconds and 4 git commands to generate.