| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <device/mmio.h> |
| 4 | #include <soc/iomap.h> |
| 5 | #include <reset.h> |
| 6 | |
| 7 | void do_board_reset(void) |
| 8 | { |
| 9 | /* |
| 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. |
| 13 | */ |
| 14 | write32(TCSR_BOOT_MISC_DETECT, 0); |
| 15 | write32(TCSR_RESET_DEBUG_SW_ENTRY, 0); |
| 16 | write32(GCNT_PSHOLD, 0); |
| 17 | } |