Home
last modified time | relevance | path

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

/drivers/watchdog/
Ddw_wdt.c48 struct dw_wdt { struct
59 #define to_dw_wdt(wdd) container_of(wdd, struct dw_wdt, wdd) argument
61 static inline int dw_wdt_is_enabled(struct dw_wdt *dw_wdt) in dw_wdt_is_enabled() argument
63 return readl(dw_wdt->regs + WDOG_CONTROL_REG_OFFSET) & in dw_wdt_is_enabled()
67 static inline int dw_wdt_top_in_seconds(struct dw_wdt *dw_wdt, unsigned top) in dw_wdt_top_in_seconds() argument
73 return (1U << (16 + top)) / dw_wdt->rate; in dw_wdt_top_in_seconds()
76 static int dw_wdt_get_top(struct dw_wdt *dw_wdt) in dw_wdt_get_top() argument
78 int top = readl(dw_wdt->regs + WDOG_TIMEOUT_RANGE_REG_OFFSET) & 0xF; in dw_wdt_get_top()
80 return dw_wdt_top_in_seconds(dw_wdt, top); in dw_wdt_get_top()
85 struct dw_wdt *dw_wdt = to_dw_wdt(wdd); in dw_wdt_ping() local
[all …]
DMakefile55 obj-$(CONFIG_DW_WATCHDOG) += dw_wdt.o
DKconfig524 module will be called dw_wdt.