36 #ifndef __MHAL_WDT_H__
37 #define __MHAL_WDT_H__
39 #include <mhal_osai.h>
235 unsigned int *rst_sta);
int mtk_mhal_wdt_config(struct hal_wdt_dev *wdt_dev, u8 irq)
This function is used to configure WDT mode.
int mtk_mhal_wdt_get_status(struct hal_wdt_dev *wdt_dev, unsigned int *rst_sta)
This function is used to get WDT reset status.
int mtk_mhal_wdt_hwrst(struct hal_wdt_dev *wdt_dev)
This function is used to reset immediately by WDT HW-RST.
int mtk_mhal_wdt_enable(struct hal_wdt_dev *wdt_dev, u32 en)
This function is used to enable or disable WDT.
int mtk_mhal_wdt_set_timeout(struct hal_wdt_dev *wdt_dev, u32 sec)
This function is used to set WDT timeout value.
void __iomem * cm4_wdt_base
Register base address of WDT.
Definition: mhal_wdt.h:134
The interface to WDT device.
Definition: mhal_wdt.h:132
int mtk_mhal_wdt_restart(struct hal_wdt_dev *wdt_dev)
This function is used to restart WDT counter.
int mtk_mhal_wdt_swrst(struct hal_wdt_dev *wdt_dev)
This function is used to reset immediately by WDT SW-RST.