提交 f793a358 编写于 作者: D David Brownell 提交者: Haavard Skinnemoen

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: NHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
上级 55ac7a74
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册