Skip to content
Snippets Groups Projects
Commit 428f7188 authored by Fabio Estevam's avatar Fabio Estevam Committed by Albert Aribaud
Browse files

arm1136: Fix NAND boot

parent 3a8a83e0
No related branches found
No related tags found
No related merge requests found
...@@ -163,15 +163,7 @@ call_board_init_f: ...@@ -163,15 +163,7 @@ call_board_init_f:
bic sp, sp, #7 /* 8-byte alignment for ABI compliance */ bic sp, sp, #7 /* 8-byte alignment for ABI compliance */
ldr r0,=0x00000000 ldr r0,=0x00000000
#ifdef CONFIG_NAND_SPL
bl nand_boot
#else
#ifdef CONFIG_ONENAND_IPL
bl start_oneboot
#else
bl board_init_f bl board_init_f
#endif /* CONFIG_ONENAND_IPL */
#endif /* CONFIG_NAND_SPL */
/*------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------*/
...@@ -267,10 +259,10 @@ clbss_l:str r2, [r0] /* clear loop... */ ...@@ -267,10 +259,10 @@ clbss_l:str r2, [r0] /* clear loop... */
*/ */
#ifdef CONFIG_NAND_SPL #ifdef CONFIG_NAND_SPL
ldr r0, _nand_boot_ofs ldr r0, _nand_boot_ofs
adr r1, _start mov pc, r0
add pc, r0, r1
_nand_boot_ofs _nand_boot_ofs:
: .word nand_boot - _start .word nand_boot
#else #else
jump_2_ram: jump_2_ram:
ldr r0, _board_init_r_ofs ldr r0, _board_init_r_ofs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment