imx_watchdog: always set minimal timeout in reset_cpu
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sun, 20 Dec 2015 18:09:58 +0000 (21:09 +0300)
committerStefano Babic <sbabic@denx.de>
Thu, 7 Jan 2016 16:54:53 +0000 (17:54 +0100)
commit587c3f8ebe356b558f1876414885c1b4a31294ab
tree6194dc359a4751eceeb4eae8df9d73c9ce9cab83
parent88f91d1375aaf4d21d77a2f2daa351dea9132a58
imx_watchdog: always set minimal timeout in reset_cpu

The problem is that timeout bits in WCR register were leaved unchanged.
So previously set timeout value was applied and therefore 'reset'
command takes any value up to two minutes, depending on previous
watchdog settings, instead of minimal 0.5 seconds.

Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
drivers/watchdog/imx_watchdog.c
include/fsl_wdog.h