coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
reset.c
Go to the documentation of this file.
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  */
16  write32(GCNT_PSHOLD, 0);
17 }
static void write32(void *addr, uint32_t val)
Definition: mmio.h:40
void do_board_reset(void)
Definition: reset.c:8
#define TCSR_BOOT_MISC_DETECT
Definition: reset.c:7
#define GCNT_PSHOLD
Definition: reset.c:6
#define TCSR_RESET_DEBUG_SW_ENTRY
Definition: reset.c:8