diff options
author | Jarried Lin <jarried.lin@mediatek.corp-partner.google.com> | 2024-01-23 18:26:22 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-08-24 13:00:25 +0000 |
commit | 29f0ba2ca92547d483b6f968e688aaef18121255 (patch) | |
tree | 42a68d2733064e8f24a5804fe9212c15a2056215 /src/soc/mediatek/mt8196/include | |
parent | 6c8974b5c746b37e31365d511c7499c3e5887cb8 (diff) |
soc/mediatek/mt8196: Initialize watchdog
Add watchdog support for MT8196.
TEST=build pass and WDT uart log
BUG=b:317009620
Change-Id: I9d5e71aa27d469855c2bd65abc5309d69a018750
Signed-off-by: Jarried Lin <jarried.lin@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83926
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8196/include')
-rw-r--r-- | src/soc/mediatek/mt8196/include/soc/wdt.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8196/include/soc/wdt.h b/src/soc/mediatek/mt8196/include/soc/wdt.h new file mode 100644 index 0000000000..a8299fb2e6 --- /dev/null +++ b/src/soc/mediatek/mt8196/include/soc/wdt.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ + +#ifndef SOC_MEDIATEK_MT8196_WDT_H +#define SOC_MEDIATEK_MT8196_WDT_H + +#include <soc/wdt_common.h> + +#define MTK_WDT_SPM_THERMAL_VAL 1 + +DEFINE_BIT(MTK_WDT_SPM_THERMAL_EN, 0) +DEFINE_BIT(MTK_WDT_THERMAL_EN, 18) +DEFINE_BIT(MTK_WDT_THERMAL_IRQ, 18) + +#endif /* SOC_MEDIATEK_MT8196_WDT_H */ |