Home
last modified time | relevance | path

Searched refs:dw_wdt (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/watchdog/
Ddw_wdt.c83 struct dw_wdt { struct
101 #define to_dw_wdt(wdd) container_of(wdd, struct dw_wdt, wdd) argument
103 static inline int dw_wdt_is_enabled(struct dw_wdt *dw_wdt) in dw_wdt_is_enabled() argument
105 return readl(dw_wdt->regs + WDOG_CONTROL_REG_OFFSET) & in dw_wdt_is_enabled()
109 static void dw_wdt_update_mode(struct dw_wdt *dw_wdt, enum dw_wdt_rmod rmod) in dw_wdt_update_mode() argument
113 val = readl(dw_wdt->regs + WDOG_CONTROL_REG_OFFSET); in dw_wdt_update_mode()
118 writel(val, dw_wdt->regs + WDOG_CONTROL_REG_OFFSET); in dw_wdt_update_mode()
120 dw_wdt->rmod = rmod; in dw_wdt_update_mode()
123 static unsigned int dw_wdt_find_best_top(struct dw_wdt *dw_wdt, in dw_wdt_find_best_top() argument
134 if (dw_wdt->timeouts[idx].sec >= timeout) in dw_wdt_find_best_top()
[all …]
DMakefile55 obj-$(CONFIG_DW_WATCHDOG) += dw_wdt.o
DKconfig530 module will be called dw_wdt.