avr32: Disable the AP7000 internal watchdog on startup

This patch forces the watchdog off in all cases.  That will at least
get rid of the constant reboot cycle, though it won't let the watchdog
actually run in the new kernels:  its probe() comes up with a polite
warning.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
This commit is contained in:
David Brownell 2008-04-16 22:57:58 -07:00 committed by Haavard Skinnemoen
parent 55ac7a7490
commit f793a35819
1 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,10 @@ int cpu_init(void)
extern void _evba(void);
char *p;
/* in case of soft resets, disable watchdog */
sm_writel(WDT_CTRL, SM_BF(KEY, 0x55));
sm_writel(WDT_CTRL, SM_BF(KEY, 0xaa));
gd->cpu_hz = CFG_OSC0_HZ;
/* TODO: Move somewhere else, but needs to be run before we