source: rtems/c/src/lib/libbsp/arm/realview-pbx-a9/startup/bspreset.c @ a91dc98b

4.115
Last change on this file since a91dc98b was a91dc98b, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 26, 2013 at 1:06:32 PM

bsp/realview-pbx-a9: New BSP

  • Property mode set to 100644
File size: 600 bytes
Line 
1/*
2 * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <info@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.com/license/LICENSE.
13 */
14
15#include <bsp/bootcard.h>
16
17void bsp_reset(void)
18{
19  volatile uint32_t *sys_lock = (volatile uint32_t *) 0x10000020;
20  volatile uint32_t *sys_resetctl = (volatile uint32_t *) 0x10000040;
21
22  while (true) {
23    *sys_lock = 0xa05f;
24    *sys_resetctl = 0xf4;
25  }
26}
Note: See TracBrowser for help on using the repository browser.