Skip to content
Snippets Groups Projects
Commit 6c04bd38 authored by Stefan Roese's avatar Stefan Roese Committed by Eugen Hristev
Browse files

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: default avatarStefan Roese <sr@denx.de>
Reported-by: default avatarHeiko Schocher <hs@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Andreas Bießmann <andreas@biessmann.org>
Cc: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
Tested on the taurus board:
Tested-by: default avatarHeiko Schocher <hs@denx.de>
parent 7fbd42f5
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment