]> git.baikalelectronics.ru Git - uboot.git/commit
wdt: designware: fix timeout calculation due to expecting KHz
authorJack Mitchell <ml@embed.me.uk>
Thu, 17 Sep 2020 09:30:40 +0000 (10:30 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 8 Oct 2020 15:42:36 +0000 (11:42 -0400)
commitd9ec8e785852e7ef45684d9fec517347c9d49cf4
tree05baef29001ae5b8649a6bcdb1d9ef659096ce06
parent4528ab7d0f65c2f4c95a22ba6328aaa6a55446f9
wdt: designware: fix timeout calculation due to expecting KHz

The timeout calculation is based on the clk being in KHz but
the clk api returns the clk value in Hz. Convert this to KHz
to calculate the correct timeout value.

Signed-off-by: Jack Mitchell <ml@embed.me.uk>
drivers/watchdog/designware_wdt.c