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