soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / mainboard / google / mistral / reset.c
blob446090d3e2246be931b6a0df8f819f5e57b62a8c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <reset.h>
6 #define GCNT_PSHOLD ((void *)0x004AB000u)
7 #define TCSR_BOOT_MISC_DETECT ((void *)0x0193D100)
8 #define TCSR_RESET_DEBUG_SW_ENTRY ((void *)0x01940000)
10 void do_board_reset(void)
13 * At boot time the boot loaders would have set a magic cookie
14 * here to detect watchdog reset. However, since this is a
15 * normal reset clear the magic numbers.
17 write32(TCSR_BOOT_MISC_DETECT, 0);
18 write32(TCSR_RESET_DEBUG_SW_ENTRY, 0);
19 write32(GCNT_PSHOLD, 0);