From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] nand flash controller on 440ep/epx
Date: Mon, 9 Oct 2006 17:14:34 +0200 [thread overview]
Message-ID: <200610091714.34566.sr@denx.de> (raw)
In-Reply-To: <1628E43D99629C46988BE46087A3FBB9729AE8@ep-01.EmbeddedPlanet.local>
On Monday 09 October 2006 16:15, Jeff Mann wrote:
> That would work. Is simple, and would work for initialization. It would
> involve using a proper mask for nand_baseaddr[..] when setting the
> location of the nand read/write/control registers to ignore the CS data.
OK.
> Nand_init(...) calls nand_init_chip(...) which then calls
> board_nand_init(...)
> I think the most appropriate place to select the proper Chip select is
> in the board_nand_init() function.
No. It should be a function called from the following functions:
- board_nand_init()
- do_nand() (in the "device" part)
Something like:
void nand_select_chip(struct nand_chip *nand)
{
int cs = nand->IO_ADDR_R & 0x3
...
}
This should do it. Or did I miss something?
> This function is only passed an
> address of the chip nand_chip struct address. So I still think that an
> entry in the nand_chip struct should be used for tracking the chip
> select to keep the chip select code out of nand.c and keep the code as
> simple as possible.
Hmmm. Is something missing in my example above?
> So, I like the
> #define CFG_NAND_BASE_LIST { CFG_NAND_BASE + 1, CFG_NAND_BASE + 2 }
>
> configuration method, but I still think that the struct nand_chip needs
> a chip select variable.
Please explain why.
> Do we assume the use of the nand flash controller on PPC 440 EP, Epx,
> GP, and GPx processors by default (unless still using the legacy drivers
> like the bamboo board)?
For now yes. It's very unlikely that a board with a PPC with an embedded NAND
controller like 440EP/GR/EPx/GRx will implement a NAND interface in a
different way. If such a board will appear we can still add some
configuration method for this.
Best regards,
Stefan
next prev parent reply other threads:[~2006-10-09 15:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-09 14:15 [U-Boot-Users] nand flash controller on 440ep/epx Jeff Mann
2006-10-09 15:14 ` Stefan Roese [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-10-06 20:51 Jeff Mann
2006-10-07 14:15 ` Stefan Roese
2006-10-06 17:56 Jeff Mann
2006-10-06 19:40 ` Stefan Roese
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=200610091714.34566.sr@denx.de \
--to=sr@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox