diff options
author | Stefan Roese <sr@denx.de> | 2019-04-02 10:57:19 +0200 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2019-04-09 09:28:50 +0300 |
commit | 6c04bd38572b479b93ee64627f207461a61a54e3 (patch) | |
tree | 7c1a24906ed3062e5fb370b51cb8092babcaa073 /configs/bananapi_m2_plus_h3_defconfig | |
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 <sr@denx.de>
Reported-by: Heiko 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: Heiko Schocher <hs@denx.de>
Tested on the taurus board:
Tested-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'configs/bananapi_m2_plus_h3_defconfig')
0 files changed, 0 insertions, 0 deletions