All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/9 V4] convert common files to new SoC access
Date: Thu, 11 Feb 2010 10:11:18 +0100	[thread overview]
Message-ID: <4B73C9B6.3050706@esd.eu> (raw)
In-Reply-To: <4B73B735.4070909@esd.eu>

Daniel Gorsulowski wrote:

<snip>

> -			tmp = at91_sys_read(AT91_CKGR_MCFR);
> -		} while (!(tmp & AT91_PMC_MAINRDY));
> -		main_clock = (tmp & AT91_PMC_MAINF) * (AT91_SLOW_CLOCK / 16);
> +			tmp = readl(&pmc->mcfr);
> +		} while (!(tmp & AT91_PMC_IXR_MCKRDY));
> +		main_clock = (tmp & (0xffff <<  0)) * (AT91_SLOW_CLOCK / 16);
>  	}
>  #endif
>  	main_clk_rate_hz = main_clock;
> --
> 
> I replaced AT91_PMC_MAINF with (0xffff <<  0), because AT91_PMC_MAINF in not
> available anymore. Maybe you find a better solution...
> 

Sorry, I committed before testing.
AT91_PMC_IXR_MCKRDY is wrong. It should be replaced by 0x00010000 or an
appropriate #define

Daniel

  reply	other threads:[~2010-02-11  9:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23 11:03 [U-Boot] [PATCH 5/9 V3] convert common files to new SoC access Jens Scharsig
2010-01-31  1:20 ` Tom
2010-01-31 16:15   ` Jens Scharsig
2010-02-03 21:46 ` [U-Boot] [PATCH 5/9 V4] " Jens Scharsig
2010-02-10 11:25   ` Daniel Gorsulowski
2010-02-11  7:38     ` Daniel Gorsulowski
2010-02-11  7:52   ` Daniel Gorsulowski
2010-02-11  9:11     ` Daniel Gorsulowski [this message]
2010-02-14 11:25     ` Jens Scharsig

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=4B73C9B6.3050706@esd.eu \
    --to=daniel.gorsulowski@esd.eu \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.