| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | /* |
| 4 | * This file is created based on MT8186 Functional Specification |
| 5 | * Chapter number: 3.4 |
| 6 | */ |
| 7 | |
| 8 | #include <device/mmio.h> |
| 9 | #include <soc/addressmap.h> |
| 10 | #include <soc/wdt.h> |
| 11 | |
| 12 | #define MTK_WDT_CLR_STATUS_VAL 0x22 |
| 13 | |
| 14 | DEFINE_BITFIELD(MTK_WDT_CLR_STATUS, 31, 24) |
| 15 | |
| 16 | void mtk_wdt_clr_status(void) |
| 17 | { |
| 18 | SET32_BITFIELDS(&mtk_wdt->wdt_mode, |
| 19 | MTK_WDT_CLR_STATUS, MTK_WDT_CLR_STATUS_VAL); |
| 20 | } |