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

Peter Tyser ptyser at xes-inc.com
Tue Jan 12 20:16:30 CET 2010


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"?

Peter



More information about the U-Boot mailing list