u-boot/lib_ppc
Anton Vorontsov 91525c6715 mpc85xx: Fix booting on various boards
commit 0e870980a6 ("8xxx: Removed
CONFIG_NUM_CPUS from 85xx/86xx") breaks U-Boot on various boards,
namely the ones that call get_sys_info() from board_early_init_f().

get_sys_info() calls cpu_numcores(), which depends on probecpu()
being called before. But probecpu() is called after board_early_init_f(),
and so cpu_numcores() returns random values, which in turn crashes
get_sys_info().

To fix the issue we place probecpu() before board_early_init_f()
in an initialization sequence.

Booting on the following boards should be revived now:
 mpc8540ads
 mpc8541cds
 mpc8548cds
 mpc8555cds
 mpc8560ads
 mpc8568mds
 mpc8569mds
 and maybe more.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2009-10-16 10:21:56 -05:00
..
bat_rw.c mpc86xx: Add support to populate addr map based on BATs 2009-02-10 00:29:49 +01:00
board.c mpc85xx: Fix booting on various boards 2009-10-16 10:21:56 -05:00
bootm.c 8xxx: Removed CONFIG_NUM_CPUS from 85xx/86xx 2009-08-28 17:12:38 -05:00
cache.c ppc: Fix roll over bug in flush_cache() 2009-02-10 00:47:18 +01:00
config.mk ppc: Enable full relocation to RAM 2009-10-03 10:15:45 +02:00
extable.c ppc: Remove extable relocation fixups 2009-10-03 10:17:56 +02:00
interrupts.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
kgdb.c disk/ doc/ lib_*/ and tools/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 11:19:50 -05:00
Makefile ppc: Check for compilers that don't support relocation 2009-10-03 10:15:45 +02:00
ppccache.S Update Freescale copyrights to remove "All Rights Reserved" 2009-07-29 09:59:22 +02:00
ppcstring.S Initial revision 2000-07-19 14:09:16 +00:00
ticks.S Initial revision 2001-11-26 22:06:16 +00:00
time.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00