From: tglx@linutronix.de (Thomas Gleixner)
To: Andy Hawkins <a.hawkins@cabletime.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Large flash concatenation
Date: Fri, 28 May 2004 13:20:53 +0200 [thread overview]
Message-ID: <200405281320.53554.tglx@linutronix.de> (raw)
In-Reply-To: <1085740962.5617.9.camel@adh>
On Friday 28 May 2004 12:42, Andy Hawkins wrote:
> Hi,
>
> > 2. The nand driver itself can handle multiple chips now. The scan
> > function supports multiple chip detection. Do not use the concat function
> > for this purpose. The chips are provided as one big device to the MTD
> > layer if you do not use partitions.
>
> How do I do this? Each chip appears at a separate address (we've used
> the lower 6 bits of the address lines to decode the chip selects for
> each chip). At the moment, I'm looping over all the possible addresses
> calling 'nand_scan' at each address. Is this this correct way to do
> this?
nand_scan now takes a parameter maxchips. This tells nand_scan to scan for up
to maxchips chips.
The selection is simple. Only one chip can be selected at a time.
All you have to do is write your own select_chip function and set the function
pointer in the nand chip structure to this function before calling nand_scan
the function gets the chipnr (0 - maxchip-1) which should be selected or -1 to
deselect.
Inside this function you simply modify the IO_ADDR_R and IO_ADDR_W fields of
the nand structure so the appropriate chip gets selected.
--
Thomas
________________________________________________________________________
Steve Ballmer quotes the statistic that IT pros spend 70 percent of their
time managing existing systems. That couldn’t have anything to do with
the fact that 99 percent of these systems run Windows, could it?
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de
next prev parent reply other threads:[~2004-05-28 11:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-28 9:41 Large flash concatenation Andy Hawkins
2004-05-28 10:27 ` Thomas Gleixner
2004-05-28 10:42 ` Andy Hawkins
2004-05-28 10:44 ` Thomas Gleixner
2004-05-28 10:58 ` Andy Hawkins
2004-05-28 11:15 ` Thomas Gleixner
2004-05-28 13:14 ` David Woodhouse
2004-05-28 11:20 ` Thomas Gleixner [this message]
2004-05-28 10:28 ` David Woodhouse
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=200405281320.53554.tglx@linutronix.de \
--to=tglx@linutronix.de \
--cc=a.hawkins@cabletime.com \
--cc=linux-mtd@lists.infradead.org \
/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