On 2026-08-12T09:48:39, Juuso Rinta <[email protected]> wrote:
> watchdog: octeontx_wdt: set max_timeout_ms in probe
>
> Report the hardware-limited maximum timeout value to the wdt
> uclass by setting max_timeout_ms in the per-device uclass-plat
> data during octeontx_wdt_probe().
>
> The timeout is programmed via the 16-bit WDOG_LEN field in
> configured steps, so the largest representable timeout is
> (0xffff << 8) steps. This is then converted to milliseconds
> via the timershift and clock rate, and set only when the rate
> is valid and non-zero.
>
> Signed-off-by: Juuso Rinta <[email protected]>
>
> drivers/watchdog/octeontx_wdt.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to