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