Searched refs:dw_wdt (Results 1 – 3 of 3) sorted by relevance
48 struct dw_wdt { struct59 #define to_dw_wdt(wdd) container_of(wdd, struct dw_wdt, wdd) argument61 static inline int dw_wdt_is_enabled(struct dw_wdt *dw_wdt) in dw_wdt_is_enabled() argument63 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() argument73 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() argument78 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 …]
55 obj-$(CONFIG_DW_WATCHDOG) += dw_wdt.o
524 module will be called dw_wdt.