Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/watchdog/
Ddw_wdt.c54 struct dw_wdt { struct
65 #define to_dw_wdt(wdd) container_of(wdd, struct dw_wdt, wdd) argument
67 static inline int dw_wdt_is_enabled(struct dw_wdt *dw_wdt) in dw_wdt_is_enabled() argument
69 return readl(dw_wdt->regs + WDOG_CONTROL_REG_OFFSET) & in dw_wdt_is_enabled()
73 static inline int dw_wdt_top_in_seconds(struct dw_wdt *dw_wdt, unsigned top) in dw_wdt_top_in_seconds() argument
79 return (1U << (16 + top)) / dw_wdt->rate; in dw_wdt_top_in_seconds()
82 static int dw_wdt_get_top(struct dw_wdt *dw_wdt) in dw_wdt_get_top() argument
84 int top = readl(dw_wdt->regs + WDOG_TIMEOUT_RANGE_REG_OFFSET) & 0xF; in dw_wdt_get_top()
86 return dw_wdt_top_in_seconds(dw_wdt, top); in dw_wdt_get_top()
91 struct dw_wdt *dw_wdt = to_dw_wdt(wdd); in dw_wdt_ping() local
[all …]
DMakefile55 obj-$(CONFIG_DW_WATCHDOG) += dw_wdt.o
DKconfig422 module will be called dw_wdt.