Lines Matching +full:wait +full:- +full:pin
1 // SPDX-License-Identifier: GPL-2.0+
8 * BuS Elektronik GmbH & Co. KG <esw@bus-elektronik.de>
11 * Copyright (C) 2008 Arthur Shipkowski (art@videon-central.com)
33 out_8(&rcm->rcr, RCM_RCR_SOFTRST); in do_reset()
46 strmhz(buf1, gd->cpu_clk), in print_cpuinfo()
47 strmhz(buf2, gd->bus_clk)); in print_cpuinfo()
58 out_be16(&wdt->sr, 0x5555); in watchdog_reset()
59 out_be16(&wdt->sr, 0xaaaa); in watchdog_reset()
67 out_be16(&wdt->sr, 0x5555); in watchdog_disable()
68 out_be16(&wdt->sr, 0xaaaa); in watchdog_disable()
70 out_be16(&wdt->cr, 0); in watchdog_disable()
81 out_be16(&wdt->cr, 0); in watchdog_init()
84 out_be16(&wdt->mr, in watchdog_init()
85 (CONFIG_WATCHDOG_TIMEOUT * CONFIG_SYS_HZ) / (32768 * 1000) - 1); in watchdog_init()
88 out_be16(&wdt->sr, 0x5555); in watchdog_init()
89 out_be16(&wdt->sr, 0xaaaa); in watchdog_init()
108 unsigned short pin; /* Part identification number */ in print_cpuinfo() local
113 pin = cir >> MCF_CCM_CIR_PIN_LEN; in print_cpuinfo()
116 switch (pin) { in print_cpuinfo()
132 printf("CPU: Unknown - Freescale ColdFire MCF5271 family" in print_cpuinfo()
133 " (PIN: 0x%x) rev. %hu, at %s MHz\n", in print_cpuinfo()
134 pin, prn, strmhz(buf, CONFIG_SYS_CLK)); in print_cpuinfo()
179 out_be16(&wdp->wdog_wrrr, 0); in do_reset()
182 /* enable watchdog, set timeout to 0 and wait */ in do_reset()
183 out_be16(&wdp->wdog_wrrr, 1); in do_reset()
198 msk = (in_be32(&sysctrl->sc_dir) > 28) & 0xf; in print_cpuinfo()
224 out_be16(&wdt->wdog_wcr, 0); in watchdog_reset()
232 out_be16(&wdt->wdog_wcr, 0); in watchdog_disable()
234 out_be16(&wdt->wdog_wirr, 0); in watchdog_disable()
236 out_be16(&wdt->wdog_wrrr, 0); in watchdog_disable()
247 out_be16(&wdt->wdog_wirr, 0); in watchdog_init()
250 out_be16(&wdt->wdog_wrrr, in watchdog_init()
251 (CONFIG_WATCHDOG_TIMEOUT * CONFIG_SYS_HZ) / (32768 * 1000) - 1); in watchdog_init()
254 out_be16(&wdt->wdog_wcr, 0); in watchdog_init()
270 out_8(&rcm->rcr, RCM_RCR_SOFTRST); in do_reset()
293 out_be16(&wdt->wsr, 0x5555); in watchdog_reset()
294 out_be16(&wdt->wsr, 0xaaaa); in watchdog_reset()
302 out_be16(&wdt->wsr, 0x5555); in watchdog_disable()
303 out_be16(&wdt->wsr, 0xaaaa); in watchdog_disable()
306 out_be16(&wdt->wcr, 0); in watchdog_disable()
317 out_be16(&wdt->wcr, 0); in watchdog_init()
320 out_be16(&wdt->wmr, in watchdog_init()
321 (CONFIG_WATCHDOG_TIMEOUT * CONFIG_SYS_HZ) / (32768 * 1000) - 1); in watchdog_init()
324 out_be16(&wdt->wsr, 0x5555); in watchdog_init()
325 out_be16(&wdt->wsr, 0xaaaa); in watchdog_init()
340 printf("CPU: Freescale Coldfire MCF5282 (PIN: %2.2x REV: %2.2x)\n", in print_cpuinfo()
375 /* enable watchdog, set timeout to 0 and wait */ in do_reset()
407 /* enable watchdog, set timeout to 0 and wait */ in do_reset()
418 * create a board-specific function called: