watchdog: bcm6345: callback start use tick instead of ms
authorPhilippe Reynes <philippe.reynes@softathome.com>
Fri, 3 May 2019 17:43:06 +0000 (19:43 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 18 May 2019 16:31:58 +0000 (12:31 -0400)
commitc411adbdd0f2ff0e1dd35342c843edd3afa7c15b
treec9b7c9f9660ddc25687275b584baaf02b600117c
parent3eaf6dcd9362b56e3217559401287dd8fa35b5b2
watchdog: bcm6345: callback start use tick instead of ms

The function bcm6345_wdt_start use the argument timeout
as tick but it should be used as milliseconds.

A clock is added as requirement for this driver.
The frequency of the clock is then used to convert the
millisecond to ticks in the function bcm6345_wdt_start.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/watchdog/bcm6345_wdt.c