blob: 31150ab5eb19f87a4807f4b509bb78e242569d62 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* Copyright (c) 2013 embedded brains GmbH. All rights reserved.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#include <bsp/bootcard.h>
void bsp_reset(void)
{
volatile uint32_t *sys_lock = (volatile uint32_t *) 0x10000020;
volatile uint32_t *sys_resetctl = (volatile uint32_t *) 0x10000040;
while (true) {
*sys_lock = 0xa05f;
*sys_resetctl = 0xf4;
}
}
|