All of lore.kernel.org
 help / color / mirror / Atom feed
From: lanmanck <lanmanck@163.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] hi,guys,about the nand flash driver
Date: Fri, 29 May 2009 12:49:52 +0800 (CST)	[thread overview]
Message-ID: <8741663.90171243572592561.JavaMail.coremail@bj163app88.163.com> (raw)

hi:
 i am going to port uboot1.1.6 nand flash driver to my arm926ejs board.use /drivers/nand/nand.c. not nand_legacy.c .
out cpu chip has a nand flash controller,the program flow is as below:
1?set address to controller's register
2?set command to controller's register
3?write controller's special register,so that the 2 steps above can execute.
4?wait for the steps above to be completed ,through another register.
5?now program the data.
the problem is;
i don't konw how to set struct nand_chip's func point because of the nand controller:
xxx_hwcontrol(): the ale,cle cannot be controlled by program.
IO_ADDRW:what's it?
 now i think i just need to write the fllowing functions:
wirtebyte,readbyte,writebuf,readbuf,
can anyone tell me if i am right? or give me some advise?
thank you.
 
 

             reply	other threads:[~2009-05-29  4:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-29  4:49 lanmanck [this message]
2009-05-29  8:32 ` [U-Boot] hi,guys,about the nand flash driver Wolfgang Denk
2009-05-29 19:30 ` Scott Wood
2009-05-30  3:09   ` [U-Boot] Reply:Re: " lanmanck
2009-05-31  2:04     ` xiangfu
2009-06-04 15:20     ` Scott Wood

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=8741663.90171243572592561.JavaMail.coremail@bj163app88.163.com \
    --to=lanmanck@163.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 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.