source: rtems/c/src/lib/libbsp/arm/xilinx-zynq/startup/bspreset.c @ a94d46c8

4.115
Last change on this file since a94d46c8 was a94d46c8, checked in by Sebastian Huber <sebastian.huber@…>, on 05/06/13 at 12:34:55

bsp/xilinx-zynq: New BSP

  • Property mode set to 100644
File size: 605 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 *slcr_unlock = (volatile uint32_t *) 0xf8000008;
20  volatile uint32_t *pss_rst_ctrl = (volatile uint32_t *) 0xf8000200;
21
22  while (true) {
23    *slcr_unlock = 0xdf0d;
24    *pss_rst_ctrl = 0x1;
25  }
26}
Note: See TracBrowser for help on using the repository browser.