source: rtems/bsps/arm/realview-pbx-a9/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: 493 bytes
Line 
1/*
2 * Copyright (c) 2013 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
11void bsp_reset(void)
12{
13  volatile uint32_t *sys_lock = (volatile uint32_t *) 0x10000020;
14  volatile uint32_t *sys_resetctl = (volatile uint32_t *) 0x10000040;
15
16  while (true) {
17    *sys_lock = 0xa05f;
18    *sys_resetctl = 0xf4;
19  }
20}
Note: See TracBrowser for help on using the repository browser.