Lines Matching +full:25 +full:v

10  * - Base prescale of (2 << 25), providing tick duration T_0: 168ms @ 200MHz
77 u32 v; in otto_wdt_start() local
79 v = ioread32(ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_start()
80 v |= OTTO_WDT_CTRL_ENABLE; in otto_wdt_start()
81 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_start()
89 u32 v; in otto_wdt_stop() local
91 v = ioread32(ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_stop()
92 v &= ~OTTO_WDT_CTRL_ENABLE; in otto_wdt_stop()
93 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_stop()
109 return DIV_ROUND_CLOSEST(1 << (25 + prescale), ctrl->clk_rate_khz); in otto_wdt_tick_ms()
135 u32 v; in otto_wdt_determine_timeouts() local
151 v = ioread32(ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_determine_timeouts()
153 v &= ~(OTTO_WDT_CTRL_PRESCALE | OTTO_WDT_CTRL_PHASE1 | OTTO_WDT_CTRL_PHASE2); in otto_wdt_determine_timeouts()
154 v |= FIELD_PREP(OTTO_WDT_CTRL_PHASE1, phase1_ticks - 1); in otto_wdt_determine_timeouts()
155 v |= FIELD_PREP(OTTO_WDT_CTRL_PHASE2, phase2_ticks - 1); in otto_wdt_determine_timeouts()
156 v |= FIELD_PREP(OTTO_WDT_CTRL_PRESCALE, prescale); in otto_wdt_determine_timeouts()
158 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_determine_timeouts()
184 u32 v; in otto_wdt_restart() local
201 v = FIELD_PREP(OTTO_WDT_CTRL_RST_MODE, reset_mode) | OTTO_WDT_CTRL_ENABLE; in otto_wdt_restart()
202 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_restart()
272 u32 v; in otto_wdt_probe_reset_mode() local
294 v = ioread32(ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_probe_reset_mode()
295 v &= ~OTTO_WDT_CTRL_RST_MODE; in otto_wdt_probe_reset_mode()
296 v |= FIELD_PREP(OTTO_WDT_CTRL_RST_MODE, mode); in otto_wdt_probe_reset_mode()
297 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_probe_reset_mode()