public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re; MTD support for 8x16 devices
@ 2000-09-01  9:14 David Vrabel
  0 siblings, 0 replies; only message in thread
From: David Vrabel @ 2000-09-01  9:14 UTC (permalink / raw)
  To: mtd

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]

 

[-- Attachment #2: Type: message/rfc822, Size: 2163 bytes --]

From: David Vrabel <dvrabel@arcom.co.uk>
To: Alice Hennessy <ahennessy@mvista.com>
Subject: Re: MTD support for 8x16 devices
Date: Fri, 01 Sep 2000 09:24:35 +0100
Message-ID: <39AF67C3.C1CB4448@arcom.co.uk>

Alice Hennessy wrote:

> The other product has a single strata chip (8x16 variety) set in byte mode so
> the bus width is 1.  The cfi ident info is requested at address 0xaa and read
> starting at 0x20 so this is new code that I've added.   I'll  merge my code to
> make use of the new define CFI_DEVICETYPE_X8 which I'm assuming was added for
> this purpose?

I have some Intel StrataFlash 28F640 which are 16x devices in 8x mode. 
It got it to work by setting the bus width to 2 (not 1) and fudging the
"next chip" detection to look in the right place (ie pretend the bus
width was 1).  This made a single chip look like two interleaved chips
but of course the chip size with the entire chip (not half) hence the
fudging.

I wonder is it might be a good idea to have something in struct map_info
which says that the devices are "interleaved internally"...?

While you're poking about in cfi_cmdset_0001.c you'll possibly need to
change the code which selects the appropriate access routines (it
currently only uses the interleave to select whether to use the 1_16 or 
2_by_8 routines)

> > I think it's probably best to keep it in a header file or in physmap.c
> > itself. The driver can default to no partitioning, and we can set up some
> > #defines at the beginning which allow people to change it as they see fit.

Since lots of people want partitioning (me included) is it possible to
have some sort of generic partitioning support instead of device
specific partitions?  Something in mtdcore.c? Something extra
mtdpartition.c?

David Vrabel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-09-01  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-01  9:14 Re; MTD support for 8x16 devices David Vrabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox