public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dave Liu <r63238@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 1/2] mpc83xx: add support for more	system clock performance controls
Date: Thu, 17 Jan 2008 09:30:08 +0800	[thread overview]
Message-ID: <1200533408.3707.2.camel@localhost.localdomain> (raw)
In-Reply-To: <20080116003801.b79618b7.kim.phillips@freescale.com>

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@freescale.com>
> Signed-off by: Joe D'Abbraccio <ljd015@freescale.com>
> Signed-off-by: Kim Phillips <kim.phillips@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  

  reply	other threads:[~2008-01-17  1:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-16  6:38 [U-Boot-Users] [PATCH 1/2] mpc83xx: add support for more system clock performance controls Kim Phillips
2008-01-17  1:30 ` Dave Liu [this message]
2008-01-17  9:14 ` Liu Dave

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1200533408.3707.2.camel@localhost.localdomain \
    --to=r63238@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox