Lines Matching +full:pre +full:- +full:timeout
1 // SPDX-License-Identifier: GPL-2.0+
4 * (C) Copyright 2000-2003
7 * Copyright (C) 2004-2007, 2012 Freescale Semiconductor, Inc.
8 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
25 out_be16(&gptmr->pre, 10); in do_reset()
26 out_be16(&gptmr->cnt, 1); in do_reset()
28 /* enable watchdog, set timeout to 0 and wait */ 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()
44 switch ((in_be32(&siu->jtagid) & 0x000FF000) >> 12) { in print_cpuinfo()
88 strmhz(buf1, gd->cpu_clk), in print_cpuinfo()
89 strmhz(buf2, gd->bus_clk)); in print_cpuinfo()
102 out_8(&gptmr->ocpw, 0xa5); in hw_watchdog_reset()
109 /* UserManual, once the wdog is disabled, wdog cannot be re-enabled */ in watchdog_disable()
110 out_8(&gptmr->mode, 0); in watchdog_disable()
111 out_8(&gptmr->ctrl, 0); in watchdog_disable()
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()
135 * create a board-specific function called: