Searched refs:dw_wdt (Results 1 – 3 of 3) sorted by relevance
54 struct dw_wdt { struct65 #define to_dw_wdt(wdd) container_of(wdd, struct dw_wdt, wdd) argument67 static inline int dw_wdt_is_enabled(struct dw_wdt *dw_wdt) in dw_wdt_is_enabled() argument69 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() argument79 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() argument84 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 …]
55 obj-$(CONFIG_DW_WATCHDOG) += dw_wdt.o
422 module will be called dw_wdt.