public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Jonas Holmberg <jonas.holmberg@axis.com>
To: Steve Tsai <startec@ms11.hinet.net>
Cc: linux-mtd@lists.infradead.org
Subject: Re: how to use amd_flash.c
Date: 04 Apr 2002 09:23:42 +0200	[thread overview]
Message-ID: <1017905022.23995.13.camel@pcjonashg> (raw)
In-Reply-To: <008801c1dba7$55a5b8b0$5501a8c0@synso.com.tw>

On Thu, 2002-04-04 at 09:07, Steve Tsai wrote:
> I'd want to use mtd and jffs2 in our ARM7  board.  The flash is MX29LV160B/T
> and it is similar to am29LV160, but it does not support CFI. How many files
> do I to modify or add to mtd tree? It seems I can modify amd_flash.c to fit
> my flash, but I can not probe the chip at booting time. Does anyone know how
> to use amd_flash.c? thanks.

You need to find out the manufacturer ID and device ID for your chip. It
can usually be found in some datasheet at the manufacurer's site. Then
add an element to the amd_flash_info table[] in amd_flash_probe().

But the amd_flash driver is obsolete and you should use jedec_probe
instead. It works about the same way as amd_flash_probe. The only thing
that amd_flash does better than jedec_probe + CFI-driver is that it
handles different types of chips in the same map. But with the new MTD
concat layer you don't need to use amd_flash in that case either.

/Jonas

  reply	other threads:[~2002-04-04  7:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-04  7:07 how to use amd_flash.c Steve Tsai
2002-04-04  7:23 ` Jonas Holmberg [this message]
2002-04-04  7:41   ` Steve Tsai
2002-04-04  8:07     ` Jonas Holmberg
  -- strict thread matches above, loose matches on Subject: below --
2002-04-04  6:59 Steve Tsai

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=1017905022.23995.13.camel@pcjonashg \
    --to=jonas.holmberg@axis.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=startec@ms11.hinet.net \
    /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