1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
7 void do_board_reset(void)
10 * At boot time the boot loaders would have set a magic cookie
11 * here to detect watchdog reset. However, since this is a
12 * normal reset clear the magic numbers.
14 write32(TCSR_BOOT_MISC_DETECT
, 0);
15 write32(TCSR_RESET_DEBUG_SW_ENTRY
, 0);
16 write32(GCNT_PSHOLD
, 0);