[U-Boot] [PATCH 3/3] 85xx: Add support for 'cpu disable' command

Kumar Gala galak at kernel.crashing.org
Tue Jan 12 20:36:27 CET 2010


On Jan 12, 2010, at 1:16 PM, Peter Tyser wrote:

> Hi Kumar,
> 
> <snip>
> 
>> +#ifdef CONFIG_FSL_CORENET
>> int cpu_disable(int nr)
>> {
>> -	/* dummy function so common/cmd_mp.c will build */
>> -	return 1;
>> +	volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
>> +
>> +	setbits_be32(&gur->coredisrl, nr);
> 
> Doesn't this need to be "1 << nr"?

Yes, good catch.

- k


More information about the U-Boot mailing list