public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] From: Sergei Poselenov <sposelenov@emcraft.com>
Date: Tue, 27 May 2008 20:17:13 +0200	[thread overview]
Message-ID: <200805272017.13595.sr@denx.de> (raw)
In-Reply-To: <1211890770-20866-1-git-send-email-wd@denx.de>

On Tuesday 27 May 2008, Wolfgang Denk wrote:
> Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
> ---
>  board/socrates/socrates.c  |   13 +++++++++++--
>  include/configs/socrates.h |    3 ++-
>  2 files changed, 13 insertions(+), 3 deletions(-)
>
> diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c
> index cb58994..15c6478 100644
> --- a/board/socrates/socrates.c
> +++ b/board/socrates/socrates.c
> @@ -45,6 +45,9 @@ ulong flash_get_size (ulong base, int banknum);
>
>  int checkboard (void)
>  {
> +	volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
> +	char *src;
> +	int f;
>  	char *s = getenv("serial#");
>
>  	puts("Board: Socrates");
> @@ -55,8 +58,14 @@ int checkboard (void)
>  	putc('\n');
>
>  #ifdef CONFIG_PCI
> -	printf ("PCI1:  32 bit, %d MHz (compiled)\n",
> -		CONFIG_SYS_CLK_FREQ / 1000000);
> +	if (gur->porpllsr & (1<<15)) {

Please don't use pointer access for such SoC registers. in_be32() is 
recommended here.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office@denx.de
=====================================================================

  parent reply	other threads:[~2008-05-27 18:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-27 12:19 [U-Boot-Users] From: Sergei Poselenov <sposelenov@emcraft.com> Wolfgang Denk
2008-05-27 12:27 ` Jerry Van Baren
2008-05-27 18:52   ` Wolfgang Denk
2008-05-27 18:17 ` Stefan Roese [this message]
2008-05-28  7:53   ` Sergei Poselenov
2008-05-28  8:31     ` Stefan Roese
2008-05-28 16:14       ` Scott Wood
2008-06-04 22:06 ` Wolfgang Denk

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=200805272017.13595.sr@denx.de \
    --to=sr@denx.de \
    --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