mb/google/fatcat: Move CSE sync at payload
[coreboot.git] / src / soc / mediatek / common / wdt_req.c
blob6dfd608b69404e3cb1790688bc00d5b2370b2bf7
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <soc/wdt.h>
6 void mtk_wdt_set_req(void)
8 SET32_BITFIELDS(&mtk_wdt->wdt_req_mode,
9 MTK_WDT_SPM_THERMAL_EN, MTK_WDT_SPM_THERMAL_VAL,
10 MTK_WDT_THERMAL_EN, 1,
11 MTK_WDT_REQ_MOD_KEY, MTK_WDT_REQ_MOD_KEY_VAL);
12 SET32_BITFIELDS(&mtk_wdt->wdt_req_irq_en,
13 MTK_WDT_THERMAL_IRQ, 0,
14 MTK_WDT_REQ_IRQ_KEY, MTK_WDT_REQ_IRQ_KEY_VAL);