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.
47 lines
1.0 KiB
47 lines
1.0 KiB
/**************************************
|
|
*
|
|
* copyright @ Motorola, 1999
|
|
*
|
|
**************************************/
|
|
|
|
/**********************************************************
|
|
* function: load_runtime_reg
|
|
*
|
|
* input: r3 - value of eumbbar
|
|
* r4 - register offset in embedded utility space
|
|
*
|
|
* output: r3 - register content
|
|
**********************************************************/
|
|
.text
|
|
.align 2
|
|
.global load_runtime_reg
|
|
|
|
load_runtime_reg:
|
|
|
|
xor r5,r5,r5
|
|
or r5,r5,r3 /* save eumbbar */
|
|
|
|
lwbrx r3,r4,r5
|
|
sync
|
|
|
|
bclr 20, 0
|
|
|
|
/****************************************************************
|
|
* function: store_runtime_reg
|
|
*
|
|
* input: r3 - value of eumbbar
|
|
* r4 - register offset in embedded utility space
|
|
* r5 - new value to be stored
|
|
*
|
|
****************************************************************/
|
|
.text
|
|
.align 2
|
|
.global store_runtime_reg
|
|
store_runtime_reg:
|
|
|
|
xor r0,r0,r0
|
|
|
|
stwbrx r5, r4, r3
|
|
sync
|
|
|
|
bclr 20,0
|
|
|