watchdog: omap_wdt: Fix WDT timeout configuration
authorMarek Vasut <marex@denx.de>
Fri, 24 Jan 2020 04:44:23 +0000 (05:44 +0100)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 4 Feb 2020 03:37:24 +0000 (09:07 +0530)
commit8a9ec4dd5f0fe3f221721a94cdc45a2a6edb5927
tree3eddc058a98656eead91e7e69d05cf2f134fcdc5
parent5b36241a2a48e189b438cb01c863bd8eb0c54bb5
watchdog: omap_wdt: Fix WDT timeout configuration

The timeout parameter of omap3_wdt_start() is in miliseconds, while
GET_WLDR_VAL() expects parameter in seconds. Fix this so the WDT
driver is actually usable.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Sam Protsenko <semen.protsenko@linaro.org>
Cc: Suniel Mahesh <sunil.m@techveda.org>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/watchdog/omap_wdt.c