
15 Jan
2009
15 Jan
'09
7:03 p.m.
On Thu, Jan 15, 2009 at 04:21:18PM +0100, Jean-Michel Hautbois wrote:
--- a/include/configs/MPC8260ADS.h +++ b/include/configs/MPC8260ADS.h
@@ -200,7 +200,11 @@ #define CONFIG_OF_LIBFDT 1 #define CONFIG_OF_BOARD_SETUP 1 #if defined(CONFIG_OF_LIBFDT) +#ifdef CONFIG_MPC8272 +#define OF_CPU "PowerPC,8272@0" +#else #define OF_CPU "cpu@0" +#endif #define OF_TBCLK (bd->bi_busfreq / 4) #endif
Can we just look for device_type == cpu, or for children of the cpus node? The above will break on things like 8248 chips, which use CONFIG_MPC8272.
Or, we could just fix the device trees to use cpu@0.
-Scott