summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/reset.c
blob: ce15235acab9723e55b43987764b58f98927039e (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#include <device/mmio.h>
#include <reset.h>
#include <soc/wdt.h>

void do_board_reset(void)
{
	write32(&mtk_wdt->wdt_swrst, MTK_WDT_SWRST_KEY);
}