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