From 22d30c4faeea969c934912bfe921490bc77b2a47 Mon Sep 17 00:00:00 2001 From: Bo-Chen Chen Date: Mon, 4 Jul 2022 19:46:33 +0800 Subject: soc/mediatek/mt8188: Initialize watchdog Add watchdog support for MT8188. This implementation is based on chapter 3.10.10 in MT8188 Functional Specification. TEST=build pass BUG=b:233720142 Signed-off-by: Bo-Chen Chen Change-Id: Iaf56c78d89af53d0272583b463c050e69bbeb07a Reviewed-on: https://review.coreboot.org/c/coreboot/+/65587 Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/mt8188/include/soc/wdt.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/soc/mediatek/mt8188/include/soc/wdt.h (limited to 'src/soc/mediatek/mt8188/include') diff --git a/src/soc/mediatek/mt8188/include/soc/wdt.h b/src/soc/mediatek/mt8188/include/soc/wdt.h new file mode 100644 index 0000000000..39d5b179f3 --- /dev/null +++ b/src/soc/mediatek/mt8188/include/soc/wdt.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef SOC_MEDIATEK_MT8188_WDT_H +#define SOC_MEDIATEK_MT8188_WDT_H + +#include + +#define MTK_WDT_SPM_THERMAL_VAL 1 + +DEFINE_BIT(MTK_WDT_SPM_THERMAL_EN, 0) +DEFINE_BIT(MTK_WDT_THERMAL_EN, 17) +DEFINE_BIT(MTK_WDT_THERMAL_IRQ, 17) + +#endif /* SOC_MEDIATEK_MT8188_WDT_H */ -- cgit v1.2.3