From: Sascha Hauer <s.hauer@pengutronix.de>
To: Matthias Kaehlcke <matthias@kaehlcke.net>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] edb93xx: Fix SDRAM initialization
Date: Fri, 12 Feb 2010 08:09:55 +0100 [thread overview]
Message-ID: <20100212070955.GP17643@pengutronix.de> (raw)
In-Reply-To: <20100210195615.GE374@darwin>
On Wed, Feb 10, 2010 at 08:56:15PM +0100, Matthias Kaehlcke wrote:
> Before programming the SDRAM mode registers, mode register update mode must be
> selected by setting the MRS bit and clearing INIT in GlConfig
>
> Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Ok, applied
Sascha
> ---
> board/edb93xx/sdram_cfg.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/board/edb93xx/sdram_cfg.c b/board/edb93xx/sdram_cfg.c
> index 9f56f72..25b214b 100644
> --- a/board/edb93xx/sdram_cfg.c
> +++ b/board/edb93xx/sdram_cfg.c
> @@ -111,6 +111,11 @@ static void setup_refresh_timer(void)
>
> static void program_mode_registers(void)
> {
> + struct sdram_regs *sdram = (struct sdram_regs *)SDRAM_BASE;
> +
> + /* Select mode register update mode */
> + writel(GLCONFIG_MRS | GLCONFIG_CKE, &sdram->glconfig);
> +
> PROGRAM_MODE_REG(0);
>
> #if (CONFIG_EP93XX_SDRAM_NUM_BANKS >= 2)
> --
> 1.6.5
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2010-02-12 7:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-10 19:56 Matthias Kaehlcke
2010-02-12 7:09 ` Sascha Hauer [this message]
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=20100212070955.GP17643@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=matthias@kaehlcke.net \
/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