public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Ben Dooks <ben-mtd@fluff.org>
To: "lp4u@inwind.it" <lp4u@inwind.it>
Cc: linux-mtd <linux-mtd@lists.infradead.org>, gavin@simtec.co.uk
Subject: Re: NAND detect
Date: Wed, 22 Sep 2004 21:29:07 +0100	[thread overview]
Message-ID: <20040922202907.GA25491@home.fluff.org> (raw)
In-Reply-To: <I4G9K8$32150B19D33A6F23F04032D520B4890A@libero.it>

On Wed, Sep 22, 2004 at 05:55:20PM +0200, lp4u@inwind.it wrote:
> Hi,
> 
> I have a s3c2410 board (BAST architecture).
> I have installed on board a kernel2.4.26 patched and with MTD.
> But the board, at boot, don't detect the NAND (I've 3 NANDs on board: 2 samsung & 1 STM).

Does the bootloader list them, newish versions of the bootloader
should probe all available devices and print the ID information
it finds as it goes.

> The MTD detect only NOR Flash.

I've just had a check through, and it seems the driver was
written pre the nand hooks for >1 chip per controller, and
therefore just selects slot 0 (smartmedia card) at start time.

A quick way to get going would be to change the value passed
to bast_nand_select_slot() in bast_nand_init() in the driver
to at least show that a chip can be detected and used. The
current default in the driver is to select the SmartMedia socket.

The slots are allocated as 0 for the SmartMedia card slot, and
1 through 3 for the chips on the board (U52, U53 and U54)

Looking through the NAND code, it seems that we may have a
few problems with implementing >1 chip, which could bite
in your configuration:

1) The driver needs to work out which slots are used and
   create a linear mapping of chips -> slots.

2) The NAND layer itself seems to concatenate the chips
   together, not export them as seperate devices, which
   makes supporting removable devices in the card slot
   and on-board NAND difficult.

I would be interesting in anyone's comments about how difficult
it would be to have an overall controller activity lock and
allow a single controller to register more than one NAND chip
as a seperate device. 

It would also be nice to have at least some form of hotplug
mechanism support where a chip can be re-scanned after a
change in it's detect status.

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'

  reply	other threads:[~2004-09-22 20:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-22 15:55 NAND detect lp4u
2004-09-22 20:29 ` Ben Dooks [this message]
2004-09-23  7:11   ` Thomas Gleixner
2004-09-23  9:48     ` Ben Dooks
     [not found]     ` <20040923191506.GE25491@home.fluff.org>
2004-09-23 23:05       ` Ben Dooks
  -- strict thread matches above, loose matches on Subject: below --
2004-09-23  9:54 lp4u
2004-09-23 10:53 ` Ben Dooks
2004-09-28 10:17 Nand detect lp4u
2004-09-28 10:55 ` Ben Dooks

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=20040922202907.GA25491@home.fluff.org \
    --to=ben-mtd@fluff.org \
    --cc=ben@fluff.org.uk \
    --cc=gavin@simtec.co.uk \
    --cc=linux-mtd@lists.infradead.org \
    --cc=lp4u@inwind.it \
    /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