watchdog: orion_wdt: take timeout value in ms
authorChris Packham <judge.packham@gmail.com>
Sun, 17 Feb 2019 21:30:53 +0000 (10:30 +1300)
committerStefan Roese <sr@denx.de>
Fri, 12 Apr 2019 05:04:18 +0000 (07:04 +0200)
commit8e427ba35170a6b5966c28e59192d0561f989f65
tree2eb5b061f538322ae262532be43e97705ffbbc92
parent8562e41464e06389ea4965d71a91753700985456
watchdog: orion_wdt: take timeout value in ms

The generic wdt_start API expects to be called with the timeout in
milliseconds. Update the orion_wdt driver to accept a timeout in
milliseconds and use the clock rate specified in the dts to convert the
timeout to an appropriate value for the timer reload register.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_omnia/turris_omnia.c
drivers/watchdog/Kconfig
drivers/watchdog/orion_wdt.c