Re: [PATCH RESEND v2 2/5] watchdog: sbsa_gwdt: set max_timeout_ms in probe

Simon Glass <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <CAFLszTgm39atdsnhAxe-zYBU_Ht4TuNdD_ObhLcUemR1Hx4LNQ@mail.gmail.com>
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]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.