1 // SPDX-License-Identifier: GPL-2.0+
11 #include <asm/immap.h>
15 int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
17 sim_t *sim = (sim_t *)(MMAP_SIM);
19 /* enable watchdog/reset, set timeout to 0 and wait */
20 out_8(&sim->sypcr, SYPCR_SWE | SYPCR_SWRI);
22 /* wait for watchdog reset */
26 /* we don't return! */
30 #if defined(CONFIG_DISPLAY_CPUINFO)
31 int print_cpuinfo(void)
35 printf("CPU: Freescale Coldfire MCF5307 at %s MHz\n",
36 strmhz(buf, CONFIG_SYS_CPU_CLK));
39 #endif /* CONFIG_DISPLAY_CPUINFO */