diff options
author | Rex-BC Chen <rex-bc.chen@mediatek.com> | 2022-06-01 18:38:56 +0800 |
---|---|---|
committer | Paul Fagerburg <pfagerburg@chromium.org> | 2022-06-03 15:27:26 +0000 |
commit | f0604afa02a62837734b6cc212d6ff1d6c98ba66 (patch) | |
tree | 0b1ca5922ef4969f90b26d34fc1dfb735ba9fe71 /src/soc/mediatek/common/include | |
parent | cdc1de7e9237cc3628d2262ee852b5b4b56c56ef (diff) |
soc/mediatek: Rename mtk_wdt_preinit() to mtk_wdt_set_req()
To simplify the calling sequence for mtk_wdt_preinit() and we always
adjust request setting in mtk_wdt_preinit(), we rename
mtk_wdt_preinit() to mtk_wdt_set_req() and call it in mtk_wdt_init().
From this modification, we can also enable thermal hardware reset
feature (CB:64676, CB:64675) in MT8192 and MT8195.
BUG=none
TEST=build pass
Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Change-Id: I1904ff9387f7677a077068f2c3df923bd642ea3d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64861
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/common/include')
-rw-r--r-- | src/soc/mediatek/common/include/soc/wdt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/mediatek/common/include/soc/wdt.h b/src/soc/mediatek/common/include/soc/wdt.h index 5494ff86ef..1277436e3c 100644 --- a/src/soc/mediatek/common/include/soc/wdt.h +++ b/src/soc/mediatek/common/include/soc/wdt.h @@ -41,8 +41,8 @@ enum { static struct mtk_wdt_regs *const mtk_wdt = (void *)RGU_BASE; -void mtk_wdt_preinit(void); int mtk_wdt_init(void); void mtk_wdt_clr_status(void); +void mtk_wdt_set_req(void); #endif /* SOC_MEDIATEK_COMMON_WDT_H */ |