diff options
author | York Sun <yorksun@freescale.com> | 2014-04-30 14:43:47 -0700 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-05-13 08:31:22 -0700 |
commit | 701e640145474131161de53a407d95d0d2f77082 (patch) | |
tree | bc6609cccfed9ec35f3c697bb6b8a7deecdc7058 /arch/powerpc/cpu/mpc85xx/spl_minimal.c | |
parent | bffac7aef54039dbe53dbf8bcbc9f8dbe78b8aa5 (diff) |
powerpc/mpc85xx: Fix boot_flag for calling board_init_f()
baord_init_f takes one argument, boot_flag. It has not been used for
powerpc, until recently changing to use generic board architecture.
The boot flag is added as a return value from cpu_init_f().
Signed-off-by: York Sun <yorksun@freescale.com>
CC: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/spl_minimal.c')
-rw-r--r-- | arch/powerpc/cpu/mpc85xx/spl_minimal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/spl_minimal.c b/arch/powerpc/cpu/mpc85xx/spl_minimal.c index 9e4c6c9078..cc45f715e8 100644 --- a/arch/powerpc/cpu/mpc85xx/spl_minimal.c +++ b/arch/powerpc/cpu/mpc85xx/spl_minimal.c @@ -12,7 +12,7 @@ DECLARE_GLOBAL_DATA_PTR; -void cpu_init_f(void) +ulong cpu_init_f(void) { #ifdef CONFIG_SYS_INIT_L2_ADDR ccsr_l2cache_t *l2cache = (void *)CONFIG_SYS_MPC85xx_L2_ADDR; @@ -27,6 +27,8 @@ void cpu_init_f(void) out_be32(&l2cache->l2ctl, (MPC85xx_L2CTL_L2E | MPC85xx_L2CTL_L2SRAM_ENTIRE)); #endif + + return 0; } #ifndef CONFIG_SYS_FSL_TBCLK_DIV |