[U-Boot] [PATCH 1/2] Removed CONFIG_NUM_CPUS for 85xx and 86xx Freescale processors.

Kumar Gala galak at kernel.crashing.org
Tue Jul 21 16:13:29 CEST 2009


On Jul 21, 2009, at 6:52 AM, Wolfgang Denk wrote:

>> diff --git a/include/asm-ppc/config.h b/include/asm-ppc/config.h
>> index ca143c7..b799a22 100644
>> --- a/include/asm-ppc/config.h
>> +++ b/include/asm-ppc/config.h
>> @@ -37,4 +37,45 @@
>> #endif
>> #endif
>>
>> +#if defined(CONFIG_MPC8533)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8535)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8536)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8540)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8541)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8543)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8544)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8545)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8547)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8548)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8555)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8560)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8567)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8568)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8569)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8572)
>> +#define CONFIG_MAX_CPUS	2
>> +#elif defined(CONFIG_P2020)
>> +#define CONFIG_MAX_CPUS	2
>> +
>> +#elif defined(CONFIG_MPC8610)
>> +#define CONFIG_MAX_CPUS	1
>> +#elif defined(CONFIG_MPC8641)
>> +#define CONFIG_MAX_CPUS	2
>> +#endif
>
> Sorry, but this does not scale. Please find a better solution.

is there a better solution?  We effectively do things like this in the  
board CONFIG.h and its just duplicated for every board.  Here its just  
isolated.  Just wondering if you had any suggestions (I agree its ugly  
and if/when we get Kconfig its something that could be put there).

- k


More information about the U-Boot mailing list