]> git.sur5r.net Git - u-boot/commit
mpc85xx: Fix booting on various boards
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Mon, 12 Oct 2009 19:55:39 +0000 (23:55 +0400)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 16 Oct 2009 15:21:56 +0000 (10:21 -0500)
commit91525c67153fcf2c19b2fc8d9c6376ac1a019f52
tree20493fcab43adcf2651ae442194a7f859ed13c86
parent26df6aa9916443077139f8f008fbc5f414ba05e5
mpc85xx: Fix booting on various boards

commit 0e870980a64584a591af775bb9c9fe9450124df9 ("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>
lib_ppc/board.c