summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8196/wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/mt8196/wdt.c')
-rw-r--r--src/soc/mediatek/mt8196/wdt.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8196/wdt.c b/src/soc/mediatek/mt8196/wdt.c
new file mode 100644
index 0000000000..8b8db3bbac
--- /dev/null
+++ b/src/soc/mediatek/mt8196/wdt.c
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only OR MIT */
+
+/*
+ * This file is created based on MT8196 Functional Specification
+ * Chapter number: 7.3.4.4
+ */
+
+#include <device/mmio.h>
+#include <soc/addressmap.h>
+#include <soc/wdt.h>
+
+#define MTK_WDT_CLR_STATUS 0x230001FF
+
+void mtk_wdt_clr_status(void)
+{
+ write32(&mtk_wdt->wdt_mode, MTK_WDT_CLR_STATUS);
+}