davinci: Fix watchdog reset code
authorDavid Griego <dgriego@mvista.com>
Mon, 1 Jun 2009 18:41:54 +0000 (11:41 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 26 Aug 2009 07:56:56 +0000 (10:56 +0300)
commita23f7dc82d48d7fc8377765f6ede907daef4e63b
tree2159e2885ae764e70f616faa945c24771c5e86c0
parent75d0fa70e748629b786c25530f7c5ae76587da35
davinci: Fix watchdog reset code

The davinci reset routine, davinci_watchdog_reset(), sets the
TCR register instead of the TGCR register as it should to put
the WDT into its "Initial State".

It also writes the WDTCR register without the proper WDKEY
which is pointless since the register will be write-protected.

Signed-off-by: David Griego <dgriego@mvista.com>
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/time.c