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 <reset.h>
5
#include <
soc/wdt.h
>
6
7
void
do_board_reset
(
void
)
8
{
9
write32
(&
mtk_wdt
->
wdt_swrst
,
MTK_WDT_SWRST_KEY
);
10
}
write32
static void write32(void *addr, uint32_t val)
Definition:
mmio.h:40
mmio.h
do_board_reset
void do_board_reset(void)
Definition:
reset.c:8
mtk_wdt_regs::wdt_swrst
u32 wdt_swrst
Definition:
wdt.h:15
wdt.h
MTK_WDT_SWRST_KEY
@ MTK_WDT_SWRST_KEY
Definition:
wdt.h:35
mtk_wdt
static struct mtk_wdt_regs *const mtk_wdt
Definition:
wdt.h:41
src
soc
mediatek
common
reset.c
Generated by
1.9.1