]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitd1bc60f5221658c4887abb77a771262ebdc949ce
treec9b7c9f9660ddc25687275b584baaf02b600117c
parentcf636d728db2f08166dc33a4a0b0705f102e8f22
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