3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Alex Zuepke <azu@sysgo.de>
11 * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
14 * Ilya Yanok, Emcraft Systems Ltd, <yanok@emcraft.com>
16 * SPDX-License-Identifier: GPL-2.0+
21 #include <asm/arch/imx-regs.h>
24 * Reset the cpu by setting up the watchdog timer and let it time out
26 void reset_cpu(ulong ignored)
28 struct wdog_regs *regs = (struct wdog_regs *)IMX_WDT_BASE;
29 /* Disable watchdog and set Time-Out field to 0 */
30 writew(0, ®s->wcr);
32 /* Write Service Sequence */
33 writew(WSR_UNLOCK1, ®s->wsr);
34 writew(WSR_UNLOCK2, ®s->wsr);
37 writew(WCR_WDE, ®s->wcr);