[WATCHDOG] OMAP fixes: enable clock in probe, trigger timer reload
authorUlrik Bech Hald <ubh@ti.com>
Fri, 12 Jun 2009 21:18:32 +0000 (16:18 -0500)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 23 Jun 2009 07:13:36 +0000 (07:13 +0000)
commit789cd4702bf830416d2e1794495407be42fe95ad
tree2fa371c73af28b622743dc05c2f57cd81a20e0b8
parent90074dce5537e87b27125505bb89a373567a7ede
[WATCHDOG] OMAP fixes: enable clock in probe, trigger timer reload

This patch contains two fixes:

1)In omap_wdt_probe() the watchdog is reset and disabled. This
requires register access and the clks needs to be enabled temporarily

2)In omap_wdt_open() the timer register needs to be reloaded
to trigger a new timer value (the default of 60s)

Tested on OMAP34xx platform (Zoom1)

Reviewed-by: Kevin Hilman <khilman@ti.deeprootsystems.com>
Signed-off-by: Ulrik Bech Hald <ubh@ti.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/omap_wdt.c