[U-Boot-Users] [PATCH 1/2] mpc83xx: add support for more system clock performance controls

Dave Liu r63238 at freescale.com
Thu Jan 17 02:30:08 CET 2008


On Wed, 2008-01-16 at 00:38 -0600, Kim Phillips wrote:
> System registers that are modified are the Arbiter Configuration
> Register (ACR), the System Priority Control Register (SPCR), and the
> System Clock Configuration Register (SCCR).
> 
> Signed-off by: Michael F. Reiss <Michael.F.Reiss at freescale.com>
> Signed-off by: Joe D'Abbraccio <ljd015 at freescale.com>
> Signed-off-by: Kim Phillips <kim.phillips at freescale.com>
> ---
>  cpu/mpc83xx/cpu_init.c |   73 +++++++++++++++++++++++++++++++++--------------
>  cpu/mpc83xx/speed.c    |   12 ++++----
>  include/mpc83xx.h      |   13 ++++++--
>  3 files changed, 67 insertions(+), 31 deletions(-)
> 
> diff --git a/cpu/mpc83xx/cpu_init.c b/cpu/mpc83xx/cpu_init.c
> index 18d5a76..3337d8c 100644
> --- a/cpu/mpc83xx/cpu_init.c
> +++ b/cpu/mpc83xx/cpu_init.c
> @@ -78,59 +78,88 @@ void cpu_init_f (volatile immap_t * im)
>  	im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSECEP) | (CFG_SPCR_TSECEP << SPCR_TSECEP_SHIFT);
>  #endif
>  
> +#ifdef CFG_ACR_RPTCNT
> +	/* Arbiter repeat count */
> +	im->arbiter.acr = (im->arbiter.acr & ~(ACR_RPTCNT)) |
> +			  (CFG_ACR_RPTCNT << ACR_RPTCNT_SHIFT);
> +#endif
> +
> +#ifdef CFG_SPCR_TSECEP
> +	/* all TSEC's Emergency priority */
> +	im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSECEP) |
> +			   (CFG_SPCR_TSECEP << SPCR_TSECEP_SHIFT);
> +#endif

The file has one CFG_SPCR_TSECEP before this,
so I will send one patch to remove redundant one.

Thanks,
Dave  






More information about the U-Boot mailing list