1 // SPDX-License-Identifier: GPL-2.0+
4 * Lineo, Inc. <www.lineo.com>
5 * Bernhard Kuhn <bkuhn@lineo.com>
8 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
9 * Marius Groeger <mgroeger@sysgo.de>
12 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
13 * Alex Zuepke <azu@sysgo.de>
18 #include <asm/arch/hardware.h>
19 #include <asm/arch/at91_st.h>
21 void __attribute__((weak)) board_reset(void)
23 /* true empty function for defining weak symbol */
26 void reset_cpu(ulong ignored)
28 at91_st_t *st = (at91_st_t *) ATMEL_BASE_ST;
32 /* Reset the cpu by setting up the watchdog timer */
33 writel(AT91_ST_WDMR_RSTEN | AT91_ST_WDMR_EXTEN | AT91_ST_WDMR_WDV(2),
35 writel(AT91_ST_CR_WDRST, &st->cr);
36 /* and let it timeout */