watchdog: ulp_wdog: Update watchdog driver for imx93
authorAlice Guo <alice.guo@nxp.com>
Fri, 21 Oct 2022 08:41:16 +0000 (16:41 +0800)
committerStefan Roese <sr@denx.de>
Mon, 24 Oct 2022 09:10:21 +0000 (11:10 +0200)
commitef0ad9b07da1595b33fa19ff96a11038c8753755
treeea4b09a6f11d330336bdfdb00bf577c76e7856de
parenta79f2007d018124c241a975bf522346d60e794a2
watchdog: ulp_wdog: Update watchdog driver for imx93

The WDOG clocks are sourced from the fixed 32KHz (lpo_clk).When the
timeout period exceeds 2 seconds, the value written to the TOVAL
register is larger than 16-bit can represent. Enabling watchdog
prescaler to solve this problem.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/watchdog/ulp_wdog.c