summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8188/wdt.c
blob: 5218de39b839a193ec02f7dbfd6ab13fc6a3a48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */

/*
 * This file is created based on MT8188 Functional Specification
 * Chapter number: 3.10.10
 */

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

#define MTK_WDT_CLR_STATUS_VAL 0x22

DEFINE_BITFIELD(MTK_WDT_CLR_STATUS, 31, 24)

void mtk_wdt_clr_status(void)
{
	SET32_BITFIELDS(&mtk_wdt->wdt_mode,
			MTK_WDT_CLR_STATUS, MTK_WDT_CLR_STATUS_VAL);
}