upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
679 B
30 lines
679 B
16 years ago
|
/*
|
||
|
* (C) Copyright 2007-2008
|
||
13 years ago
|
* Stelian Pop <stelian@popies.net>
|
||
16 years ago
|
* Lead Tech Design <www.leadtechdesign.com>
|
||
|
*
|
||
12 years ago
|
* SPDX-License-Identifier: GPL-2.0+
|
||
16 years ago
|
*/
|
||
|
|
||
|
#include <common.h>
|
||
14 years ago
|
#include <asm/io.h>
|
||
16 years ago
|
#include <asm/arch/hardware.h>
|
||
|
#include <asm/arch/at91_rstc.h>
|
||
|
|
||
15 years ago
|
/* Reset the cpu by telling the reset controller to do so */
|
||
16 years ago
|
void reset_cpu(ulong ignored)
|
||
|
{
|
||
14 years ago
|
at91_rstc_t *rstc = (at91_rstc_t *) ATMEL_BASE_RSTC;
|
||
15 years ago
|
|
||
15 years ago
|
writel(AT91_RSTC_KEY
|
||
|
| AT91_RSTC_CR_PROCRST /* Processor Reset */
|
||
|
| AT91_RSTC_CR_PERRST /* Peripheral Reset */
|
||
|
#ifdef CONFIG_AT91RESET_EXTRST
|
||
|
| AT91_RSTC_CR_EXTRST /* External Reset (assert nRST pin) */
|
||
|
#endif
|
||
|
, &rstc->cr);
|
||
|
/* never reached */
|
||
|
while (1)
|
||
|
;
|
||
16 years ago
|
}
|