2 * (C) Copyright 2014 Angelo Dureghello <angelo@sysam.it>
4 * SPDX-License-Identifier: GPL-2.0+
13 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
15 sim_t *sim = (sim_t *)(MMAP_SIM);
17 /* enable watchdog/reset, set timeout to 0 and wait */
18 out_8(&sim->sypcr, SYPCR_SWE | SYPCR_SWRI);
20 /* wait for watchdog reset */
24 /* we don't return! */
32 printf("CPU: Freescale Coldfire MCF5307 at %s MHz\n",
33 strmhz(buf, CONFIG_SYS_CPU_CLK));