Commit 8793c3d8afa7cb5eebc14ebeb65c762484cc9dd3

Authored by Zhao Qiang
Committed by Priyanka Jain
1 parent fda8e9872c

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/watchdog/sbsa_gwdt.c
... ... @@ -61,7 +61,7 @@
61 61 * to half value of timeout.
62 62 */
63 63 clk = get_tbclk();
64   - writel(clk / 2 * timeout,
  64 + writel(clk / (2 * 1000) * timeout,
65 65 priv->reg_control + SBSA_GWDT_WOR);
66 66  
67 67 /* writing WCS will cause an explicit watchdog refresh */