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.
42 lines
614 B
42 lines
614 B
17 years ago
|
/* Memory sub-system initialization code */
|
||
|
|
||
|
#include <config.h>
|
||
|
#include <version.h>
|
||
|
#include <asm/regdef.h>
|
||
|
#include <asm/mipsregs.h>
|
||
|
|
||
|
.text
|
||
|
.set noreorder
|
||
|
.set mips32
|
||
|
|
||
|
.globl lowlevel_init
|
||
|
lowlevel_init:
|
||
|
|
||
|
/*
|
||
|
* Step 2) Establish Status Register
|
||
|
* (set BEV, clear ERL, clear EXL, clear IE)
|
||
|
*/
|
||
|
li t1, 0x00400000
|
||
|
mtc0 t1, CP0_STATUS
|
||
|
|
||
|
/*
|
||
|
* Step 3) Establish CP0 Config0
|
||
|
* (set K0=3)
|
||
|
*/
|
||
|
li t1, 0x00000003
|
||
|
mtc0 t1, CP0_CONFIG
|
||
|
|
||
|
/*
|
||
|
* Step 7) Establish Cause
|
||
|
* (set IV bit)
|
||
|
*/
|
||
|
li t1, 0x00800000
|
||
|
mtc0 t1, CP0_CAUSE
|
||
|
|
||
|
/* Establish Wired (and Random) */
|
||
|
mtc0 zero, CP0_WIRED
|
||
|
nop
|
||
|
|
||
|
j ra
|
||
|
nop
|