OMAP2PLUS: WDT: Fix: Disable WDT after reset during init
authorCharulatha V <charu@ti.com>
Fri, 8 Oct 2010 17:23:06 +0000 (10:23 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 8 Oct 2010 17:23:06 +0000 (10:23 -0700)
commit20252d46597e457b7506f28be05478be457b8c4f
treee6daa790c99261c4eb3730ee839e64fac4626075
parent72f381ba0565b358dc10c67ff47728a2c9aa5457
OMAP2PLUS: WDT: Fix: Disable WDT after reset during init

Inorder to avoid any assumptions from bootloader, the watchdog
timer module is reset during init. This enables the watchdog
timer.

Therefore, it is required to disable WDT after it is reset
during init. Otherwise the system would reboot as per the default
watchdog timer registers settings.

Later, when the watchdog driver is loaded, the watchdog timer settings
is adjusted as per the default timer_margin set in the driver and the
driver would supports the normal operations supported by OMAP watchdog
timer.

Signed-off-by: Charulatha V <charu@ti.com>
Reported-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/devices.c