All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Crash nand init  UPMA - NAND flash MPC832x
Date: Sun, 20 Dec 2009 19:40:41 +0100	[thread overview]
Message-ID: <20091220184041.B339E3F6FF@gemini.denx.de> (raw)
In-Reply-To: <20091220172434.48360.qmail@f5mail-237-207.rediffmail.com>

Dear "nanda",

In message <20091220172434.48360.qmail@f5mail-237-207.rediffmail.com> you wrote:
> 
> Our development needs NAND to be implemented from u-boot level. And our booting from FLASH depends of NOR flash using the GPCM.
> 
> We are facing in the initialization of the nand_init, a crash in the dummy write during the UPM program based on the UPM mode of freescale MPC8323 in the code below:
> 
> void UPMA_prog()
> {
> int i=0;
> // OP set to write to RAM array command
> *(int *)(MAMR) = 0x10000000;
> // Write word to RAM arrays
> for (i=0;i

There is no such code in mainline U-Boot. I recommend you look for
existing (and working) code examples when porting U-Boot to your
hardware. Note that you should use I/O accessor functions instead of
plain register writes.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Digital computers are themselves more complex than most things people
build: They have very large numbers of states. This makes conceiving,
describing, and testing them hard. Software systems  have  orders-of-
magnitude more states than computers do.           - Fred Brooks, Jr.

  reply	other threads:[~2009-12-20 18:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-20 17:24 [U-Boot] Crash nand init UPMA - NAND flash MPC832x nanda
2009-12-20 18:40 ` Wolfgang Denk [this message]
2009-12-21  5:55   ` KoteswarK
2009-12-21  6:49     ` Ben Warren
  -- strict thread matches above, loose matches on Subject: below --
2009-12-28  6:18 nanda

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=20091220184041.B339E3F6FF@gemini.denx.de \
    --to=wd@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 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.