Lines Matching refs:gptmr
23 gptmr_t *gptmr = (gptmr_t *) (MMAP_GPTMR); in do_reset() local
25 out_be16(&gptmr->pre, 10); in do_reset()
26 out_be16(&gptmr->cnt, 1); in do_reset()
29 out_8(&gptmr->mode, GPT_TMS_SGPIO); in do_reset()
30 out_8(&gptmr->ctrl, GPT_CTRL_WDEN | GPT_CTRL_CE); in do_reset()
100 gptmr_t *gptmr = (gptmr_t *) (MMAP_GPTMR); in hw_watchdog_reset() local
102 out_8(&gptmr->ocpw, 0xa5); in hw_watchdog_reset()
107 gptmr_t *gptmr = (gptmr_t *) (MMAP_GPTMR); in watchdog_disable() local
110 out_8(&gptmr->mode, 0); in watchdog_disable()
111 out_8(&gptmr->ctrl, 0); in watchdog_disable()
120 gptmr_t *gptmr = (gptmr_t *) (MMAP_GPTMR); in watchdog_init() local
122 out_be16(&gptmr->pre, CONFIG_WATCHDOG_TIMEOUT); in watchdog_init()
123 out_be16(&gptmr->cnt, CONFIG_SYS_TIMER_PRESCALER * 1000); in watchdog_init()
125 out_8(&gptmr->mode, GPT_TMS_SGPIO); in watchdog_init()
126 out_8(&gptmr->ctrl, GPT_CTRL_CE | GPT_CTRL_WDEN); in watchdog_init()