source: rtems/bsps/arm/imx/start/bspreset.c @ ba619b7f

Last change on this file since ba619b7f was ba619b7f, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 21:38:20

bsps/arm/: Scripted embedded brains header file clean up

Updates #4625.

  • Property mode set to 100644
File size: 546 bytes
Line 
1/*
2 * Copyright (c) 2017 embedded brains GmbH.  All rights reserved.
3 *
4 * The license and distribution terms for this file may be
5 * found in the file LICENSE in this distribution or at
6 * http://www.rtems.org/license/LICENSE.
7 */
8
9#include <bsp/bootcard.h>
10#include <bsp.h>
11#include <arm/freescale/imx/imx_wdogreg.h>
12
13void bsp_reset(void)
14{
15  volatile uint16_t *pcr;
16
17  imx_uart_console_drain();
18
19  pcr = (volatile uint16_t *) 0x30280000;
20  *pcr = WDOG_CR_WDE;
21  *pcr = WDOG_CR_WDE;
22  *pcr = WDOG_CR_WDE;
23
24  while (true) {
25    /* Wait */
26  }
27}
Note: See TracBrowser for help on using the repository browser.