mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-14 03:49:15 +01:00
powerpc: ppc4xx: Call board_init_f_mem() for generic board
Call this function to set up our early memory. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
281aea45f8
commit
36ec4c021a
1 changed files with 17 additions and 1 deletions
|
|
@ -760,6 +760,15 @@ _start:
|
|||
#endif
|
||||
|
||||
bl cpu_init_f /* run low-level CPU init code (from Flash) */
|
||||
#ifdef CONFIG_SYS_GENERIC_BOARD
|
||||
mr r3, r1
|
||||
bl board_init_f_mem
|
||||
mr r1, r3
|
||||
li r0,0
|
||||
stwu r0, -4(r1)
|
||||
stwu r0, -4(r1)
|
||||
#endif
|
||||
li r3, 0
|
||||
bl board_init_f
|
||||
/* NOTREACHED - board_init_f() does not return */
|
||||
|
||||
|
|
@ -1027,7 +1036,14 @@ _start:
|
|||
GET_GOT /* initialize GOT access */
|
||||
|
||||
bl cpu_init_f /* run low-level CPU init code (from Flash) */
|
||||
|
||||
#ifdef CONFIG_SYS_GENERIC_BOARD
|
||||
mr r3, r1
|
||||
bl board_init_f_mem
|
||||
mr r1, r3
|
||||
stwu r0, -4(r1)
|
||||
stwu r0, -4(r1)
|
||||
#endif
|
||||
li r3, 0
|
||||
bl board_init_f /* run first part of init code (from Flash) */
|
||||
/* NOTREACHED - board_init_f() does not return */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue