On 2026-08-12T09:48:39, Juuso Rinta <[email protected]> wrote:
> watchdog: sbsa_gwdt: 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 sbsa_gwdt_probe().
>
> The timeout is programmed via the 32-bit WOR offset register and
> lasts (WOR * 2) ticks, so the largest representable timeout is
> (U32_MAX * 2) ticks. This is converted to milliseconds using the
> timer clock from get_tbclk(). The value is set only when the clock
> rate is non-zero.
>
> Signed-off-by: Juuso Rinta <[email protected]>
>
> drivers/watchdog/sbsa_gwdt.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)

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

Reply via email to