Lines Matching refs:wdog
45 struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR; in hw_watchdog_set_timeout() local
47 writel(val, &wdog->toval); in hw_watchdog_set_timeout()
52 struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR; in hw_watchdog_reset() local
54 writel(REFRESH_WORD0, &wdog->cnt); in hw_watchdog_reset()
55 writel(REFRESH_WORD1, &wdog->cnt); in hw_watchdog_reset()
61 struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR; in hw_watchdog_init() local
63 writel(UNLOCK_WORD0, &wdog->cnt); in hw_watchdog_init()
64 writel(UNLOCK_WORD1, &wdog->cnt); in hw_watchdog_init()
66 val = readb(&wdog->cs2); in hw_watchdog_init()
68 writeb(val, &wdog->cs2); in hw_watchdog_init()
71 writel(0, &wdog->win); in hw_watchdog_init()
73 writeb(WDG_LPO_CLK, &wdog->cs2);/* setting 1-kHz clock source */ in hw_watchdog_init()
74 writeb((WDGCS1_WDGE | WDGCS1_WDGUPDATE), &wdog->cs1);/* enable counter running */ in hw_watchdog_init()
81 struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE_ADDR; in reset_cpu() local
83 writel(UNLOCK_WORD0, &wdog->cnt); in reset_cpu()
84 writel(UNLOCK_WORD1, &wdog->cnt); in reset_cpu()
87 writel(0, &wdog->win); in reset_cpu()
89 writeb(WDG_LPO_CLK, &wdog->cs2);/* setting 1-kHz clock source */ in reset_cpu()
90 writeb(WDGCS1_WDGE, &wdog->cs1);/* enable counter running */ in reset_cpu()