1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2014 Angelo Dureghello <angelo@sysam.it>
12 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
14 sim_t *sim = (sim_t *)(MMAP_SIM);
16 /* enable watchdog/reset, set timeout to 0 and wait */
17 out_8(&sim->sypcr, SYPCR_SWE | SYPCR_SWRI);
19 /* wait for watchdog reset */
23 /* we don't return! */
27 #if defined(CONFIG_DISPLAY_CPUINFO)
28 int print_cpuinfo(void)
32 printf("CPU: Freescale Coldfire MCF5307 at %s MHz\n",
33 strmhz(buf, CONFIG_SYS_CPU_CLK));
36 #endif /* CONFIG_DISPLAY_CPUINFO */