mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
watchdog: sbsa: timeout should be in "millisecond"
timeout should be in "millisecond" instead of second, so divided it by 1000 when calculate the load value. Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
This commit is contained in:
parent
7e932ac790
commit
c2ba01c082
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ static int sbsa_gwdt_start(struct udevice *dev, u64 timeout, ulong flags)
|
|||
* to half value of timeout.
|
||||
*/
|
||||
clk = get_tbclk();
|
||||
writel(clk / 2 * timeout,
|
||||
writel(clk / (2 * 1000) * timeout,
|
||||
priv->reg_control + SBSA_GWDT_WOR);
|
||||
|
||||
/* writing WCS will cause an explicit watchdog refresh */
|
||||
|
|
Loading…
Add table
Reference in a new issue