[U-Boot] [PATCH v4 2/3] watchdog: orion_wdt: take timeout value in ms
Stefan Roese
sr at denx.de
Thu Apr 11 11:52:47 UTC 2019
On 17.02.19 22:30, Chris Packham wrote:
> 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 at gmail.com>
> ---
> It turned out to be easy enough to make orion_wdt conform to the
> expected wdt APIs. It looks like the turris_mox already assumed a
> timeout in ms, so only the turris_omnia needed updating.
>
> Changes in v4:
> - use DIV_ROUND_UP to avoid setting the timeout to 0.
>
> Changes in v3:
> - new
>
> Changes in v2: None
Applied to u-boot-marvell/master.
Thanks,
Stefan
More information about the U-Boot
mailing list